diff options
author | jbj <devnull@localhost> | 2000-01-19 22:51:39 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-01-19 22:51:39 +0000 |
commit | 00304183a4e4a493fcecf89e2b8b95ba66c28cc4 (patch) | |
tree | 954b811ac627c20b08ed8b5c288460cae39abc90 /lib | |
parent | 9a4edb2c30b0729d839cc19d1261afcd8597f47e (diff) | |
download | librpm-tizen-00304183a4e4a493fcecf89e2b8b95ba66c28cc4.tar.gz librpm-tizen-00304183a4e4a493fcecf89e2b8b95ba66c28cc4.tar.bz2 librpm-tizen-00304183a4e4a493fcecf89e2b8b95ba66c28cc4.zip |
Doxygen fiddles.
CVS patchset: 3528
CVS date: 2000/01/19 22:51:39
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cpio.h | 41 | ||||
-rw-r--r-- | lib/rpmmacro.h | 20 |
2 files changed, 37 insertions, 24 deletions
diff --git a/lib/cpio.h b/lib/cpio.h index db9979a47..99dfd6429 100644 --- a/lib/cpio.h +++ b/lib/cpio.h @@ -6,8 +6,20 @@ #include <rpmio.h> +/** \file lib/cpio.h + * Structures used to handle cpio payloads within rpm packages. + * + * Warning: Don't think that rpm's cpio implementation behaves just like + * standard cpio. + * The implementation is pretty close, but it has some behaviors which are + * more to RPM's liking. I tried to document the differing behavior in cpio.c, + * but I may have missed some. + * + */ + /* Note the CPIO_CHECK_ERRNO bit is set only if errno is valid. These have to be positive numbers or this setting the high bit stuff is a bad idea. */ + #define CPIOERR_CHECK_ERRNO 0x00008000 #define CPIOERR_BAD_MAGIC (2 ) @@ -33,32 +45,31 @@ #define CPIOERR_MISSING_HARDLINK (22 ) #define CPIOERR_INTERNAL (23 ) - -/* Don't think this behaves just like standard cpio. It's pretty close, but - it has some behaviors which are more to RPM's liking. I tried to document - them in cpio.c, but I may have missed some. */ - #define CPIO_MAP_PATH (1 << 0) #define CPIO_MAP_MODE (1 << 1) #define CPIO_MAP_UID (1 << 2) #define CPIO_MAP_GID (1 << 3) #define CPIO_FOLLOW_SYMLINKS (1 << 4) /* only for building */ +/*! The structure used to define a cpio payload file. */ struct cpioFileMapping { - /*@owned@*/ const char * archivePath; - /*@owned@*/ const char * fsPath; - mode_t finalMode; - uid_t finalUid; - gid_t finalGid; + /*@owned@*/ const char * archivePath; /*!< Path to store in cpio archive. */ + /*@owned@*/ const char * fsPath; /*!< Location of payload file. */ + mode_t finalMode; /*!< Mode of payload file (from header). */ + uid_t finalUid; /*!< Uid of payload file (from header). */ + gid_t finalGid; /*!< Gid of payload file (from header). */ int mapFlags; }; -/* on cpio building, only "file" is filled in */ +/** The structure passed as first argument during a cpio progress callback. + * + * Note: When building the cpio payload, only "file" is filled in. + */ struct cpioCallbackInfo { - /*@dependent@*/ const char * file; - long fileSize; /* total file size */ - long fileComplete; /* amount of file unpacked */ - long bytesProcessed; /* bytes in archive read */ + /*@dependent@*/ const char * file; /*!< File name being installed. */ + long fileSize; /*!< Total file size. */ + long fileComplete; /*!< Amount of file unpacked. */ + long bytesProcessed; /*!< No. bytes in archive read. */ }; #ifdef __cplusplus diff --git a/lib/rpmmacro.h b/lib/rpmmacro.h index 2ae5b739d..e9c05777f 100644 --- a/lib/rpmmacro.h +++ b/lib/rpmmacro.h @@ -1,19 +1,21 @@ #ifndef _H_MACRO_ #define _H_MACRO_ +/*! The structure used to store a macro. */ typedef /*@abstract@*/ struct MacroEntry { - struct MacroEntry *prev; - const char *name; /* Macro name */ - const char *opts; /* Macro parameters (ala getopt) */ - const char *body; /* Macro body */ - int used; /* No. of expansions */ - int level; + struct MacroEntry *prev;/*!< Macro entry stack. */ + const char *name; /*!< Macro name. */ + const char *opts; /*!< Macro parameters (a la getopt) */ + const char *body; /*!< Macro body. */ + int used; /*!< No. of expansions. */ + int level; /*!< Scoping level. */ } MacroEntry; +/*! The structure used to store the set of macros in a context. */ typedef /*@abstract@*/ struct MacroContext { - MacroEntry ** macroTable; - int macrosAllocated; - int firstFree; + MacroEntry ** macroTable; /*!< Macro entry table for context. */ + int macrosAllocated;/*!< No. of allocated macros. */ + int firstFree; /*!< No. of macros. */ } MacroContext; /* |