dk_app_t Struct Reference

Command line application. More...

#include <dktypes.h>

Collaboration diagram for dk_app_t:

Collaboration graph
[legend]

Data Fields

struct {
   struct {
      int   argc
 Number of arguments.
      char **   argv
 Pointer to first argument.
   }   o
 Original command line arguments.
   struct {
      int   argc
 Number of arguments.
      char **   argv
 Pointer to first argument.
   }   a
 Command line arguments without preferences.
a
 Copy of command line arguments.
struct {
   char *   u
 User login name.
   char *   a
 Application name.
   char *   h
 Host name.
   char *   g
 Program group or package name.
n
 Names often needed.
struct {
   char *   h
 Users home directory.
   char *   t
 Temporary directory.
   char *   a
 Application directory.
   char *   s
 Shared directory.
   char *   pt
 Processes temporary directory.
   char *   etc
 etc directory.
d
 Directories often needed.
struct {
   dk_storage_t *   c
 Command line preferences.
   dk_storage_iterator_t *   ci
   dk_storage_t *   a
 Applications self-set preferences.
   dk_storage_iterator_t *   ai
   dk_storage_t *   s
 Preferences set by system (storage).
   dk_storage_iterator_t *   si
 Preferences set by system (storage iterator).
   dk_storage_t *   u
 Preferences set by user (storage).
   dk_storage_iterator_t *   ui
 Preferences set by user (storage iterator).
   int   unc
 Flag: unconfigure application.
   int   prf
 Flag: preferences were set.
p
 Preferences management.
struct {
   char *   f
 Executable file name.
   char *   d
 Executable directory.
x
 Information about the executable.
struct {
   int   max
 Maximum priority occured so far.
   int   nostdio
 Flag: no logging to stdout/stderr.
   struct {
      int   m
 Minimum priority required.
      int   f
 Flag: 1=date+time, 2=split.
      unsigned char *   c
 Codepage for output.
      int   ide_type
 IDE type.
   }   o
 Logging to stdout.
   struct {
      int   m
 Minimum priority required.
      int   f
 Flag: 1=date+time, 2=split.
      unsigned char *   c
 Codepage for output.
      int   ide_type
 IDE type.
   }   e
 Logging to stderr.
   struct {
      int   m
 Minimum priority required.
      int   k
 Minimum priority required to keep log file.
      int   f
 Flag: 1=date+time, 2=split.
      FILE *   t
 Output file.
      char *   n
 Output file name.
      unsigned char *   c
 Codepage for output.
      int   ide_type
 IDE type.
   }   f
 Logging to file.
   struct {
      int   m
 Minimum priority required.
      char *   i
 Ident argument to openlog().
      int   f
 Log facility.
      int   o
 Flag: 1=syslog opened, 0=not opened.
   }   s
 Logging to syslog.
   struct {
      char *   n
 Input file name.
      unsigned long   lineno
 Line number of error.
   }   ef
 Error reporting (error source).
l
 Logging.
struct {
   char *   l
 Language.
   char *   r
 Region.
   char *   e
 Encoding.
   dk_storage_t *   s
 String tables storage.
   dk_storage_iterator_t *   si
 String tables storage iterator.
   int   es
 Encoding short.
loc
 Localization.
struct {
   unsigned long   l
 Number of next file.
td
 Data related to temporary file names.
struct {
   int   prng_type
 Type of PRNG found.
   char *   seed_file_name
 File name to save seed.
random
 Random number generation.
int relaxed_fopen_check
 Security checks.
int relaxed_fopen_reason
 Failed security checks.
int keep_temp_dir
 Message level required to keep temp dir.

Detailed Description

Command line application.

This structure stores data for applications.


Field Documentation

Applications self-set preferences.

char* dk_app_t::a

Application name.

Application directory.

struct { ... } dk_app_t::a

Copy of command line arguments.

struct { ... } dk_app_t::a

Command line arguments without preferences.

Number of arguments.

Pointer to first argument.

unsigned char* dk_app_t::c

Codepage for output.

Command line preferences.

char* dk_app_t::d

Executable directory.

struct { ... } dk_app_t::d

Directories often needed.

char* dk_app_t::e

Encoding.

struct { ... } dk_app_t::e

Logging to stderr.

struct { ... } dk_app_t::ef

Error reporting (error source).

Encoding short.

etc directory.

struct { ... } dk_app_t::f

Logging to file.

Flag: 1=date+time, 2=split.

Log facility.

char* dk_app_t::f

Executable file name.

char* dk_app_t::g

Program group or package name.

char* dk_app_t::h

Host name.

Users home directory.

char* dk_app_t::i

Ident argument to openlog().

IDE type.

Message level required to keep temp dir.

unsigned long dk_app_t::l

Number of next file.

char* dk_app_t::l

Language.

struct { ... } dk_app_t::l

Logging.

unsigned long dk_app_t::lineno

Line number of error.

struct { ... } dk_app_t::loc

Localization.

Minimum priority required.

Maximum priority occured so far.

char* dk_app_t::n

Output file name.

Input file name.

struct { ... } dk_app_t::n

Names often needed.

Flag: no logging to stdout/stderr.

Flag: 1=syslog opened, 0=not opened.

struct { ... } dk_app_t::o

Logging to stdout.

struct { ... } dk_app_t::o

Original command line arguments.

Flag: preferences were set.

Type of PRNG found.

char* dk_app_t::pt

Processes temporary directory.

char* dk_app_t::r

Region.

struct { ... } dk_app_t::random

Random number generation.

Security checks.

Failed security checks.

struct { ... } dk_app_t::s

Logging to syslog.

Preferences set by system (storage).

String tables storage.

char* dk_app_t::s

Shared directory.

File name to save seed.

Preferences set by system (storage iterator).

String tables storage iterator.

FILE* dk_app_t::t

Output file.

char* dk_app_t::t

Temporary directory.

struct { ... } dk_app_t::td

Data related to temporary file names.

Preferences set by user (storage).

char* dk_app_t::u

User login name.

Preferences set by user (storage iterator).

Flag: unconfigure application.

struct { ... } dk_app_t::x

Information about the executable.


The documentation for this struct was generated from the following file:

Generated on Mon Jan 4 15:50:57 2010 for dklibs by  doxygen 1.5.8