[EXO Home]    Doxygen Index> CAB / V1-0-1 > cmx_asBuilt / sun-gcc
#include <time.h>
Defines | |
#define | CAB_O_EPOCH (0x3a4fc880) |
#define | CAB_L_INDEX (4) |
Typedefs | |
typedef enum _CMX_asBuiltIndex | CMX_asBuiltIndex |
Typedef for enum _CMX_asBuiltIndex. | |
typedef struct _CMX_asBuiltIdentity | CMX_asBuiltIdentity |
Typedef for struct _CMX_asBuiltIdentity. | |
typedef struct _CMX_asBuiltLoad | CMX_asBuiltLoad |
Typedef for struct _CMX_asBuiltLoad. | |
Enumerations | |
enum | _CMX_asBuiltIndex { CAB_K_MODULE = 0, CAB_K_FILE = 1, CAB_K_KEY = 2, CAB_K_SPARE_1 = 3 } |
Indices into the user data storage area of a CMX identity record. More... | |
Functions | |
CMX_asBuiltIdentity * | CMX_asBuiltFind (const char *pkg, const char *con) |
Find a CMX-as-built identity block by package/constituent name. | |
const char * | CMX_asBuiltGetConstit (CMX_asBuiltIdentity *ident) |
Return (a pointer to) the constituent name recorded by CMX-as-built. | |
unsigned int | CMX_asBuiltGetData (CMX_asBuiltIdentity *ident, CMX_asBuiltIndex index, void **value) |
Get data in one of the slots in the user data area. | |
const char * | CMX_asBuiltGetDescrip (CMX_asBuiltIdentity *ident) |
Return (a pointer to) the user supplied descriptive string recorded by CMX-as-built. | |
const char * | CMX_asBuiltGetPackage (CMX_asBuiltIdentity *ident) |
Return (a pointer to) the package name recorded by CMX-as-built. | |
int | CMX_asBuiltGetRevision (CMX_asBuiltIdentity *ident) |
Return the CMX-as-built information revision level. | |
const char * | CMX_asBuiltGetSite (CMX_asBuiltIdentity *ident) |
Return (a pointer to) the build site name recorded by CMX-as-built. | |
const char * | CMX_asBuiltGetTarget (CMX_asBuiltIdentity *ident) |
Return (a pointer to) the build target name recorded by CMX-as-built. | |
time_t | CMX_asBuiltGetTime (CMX_asBuiltIdentity *ident) |
Return the build time-stamp recorded by CMX-as-built. | |
const char * | CMX_asBuiltGetUser (CMX_asBuiltIdentity *ident) |
Return (a pointer to) the builder's userid recorded by CMX-as-built. | |
unsigned int | CMX_asBuiltGetVersion (CMX_asBuiltIdentity *ident, char *version, short *major, short *minor, short *patch) |
Return version information as recorded by CMX-as-built. | |
unsigned int | CMX_asBuiltInsert (CMX_asBuiltIdentity *ident) |
Insert a CMX-as-built identity block into the list. | |
unsigned int | CMX_asBuiltRemove (CMX_asBuiltIdentity *ident) |
Remove a CMX-as-built identity block from the list. | |
CMX_asBuiltIdentity * | CMX_asBuiltScan (CMX_asBuiltIdentity *ident) |
Scan the CMX-as-built identity block list. | |
CMX_asBuiltIdentity * | CMX_asBuiltScanBackward (CMX_asBuiltLoad **load) |
Scan the CMX-as-built load-order block list (backward chronology). | |
CMX_asBuiltIdentity * | CMX_asBuiltScanForward (CMX_asBuiltLoad **load) |
Scan the CMX-as-built load-order block list (forward chronology). | |
unsigned int | CMX_asBuiltSetData (CMX_asBuiltIdentity *ident, CMX_asBuiltIndex index, void *value) |
Set one of the slots in the user data area. | |
unsigned int | CMX_asBuiltValid (CMX_asBuiltIdentity *ident) |
Validate an identity block pointer. |
CVS $Id: CAB_asBuiltPub.h,v 1.1.1.1 2008/03/18 22:04:29 apw Exp $
enum _CMX_asBuiltIndex |
Indices into the user data storage area of a CMX identity record.
CMX_asBuilt allows a user to store 4 32-byte quantities into the CMX_as_built information structures. This enumeration is used to define their uses.
CMX_asBuiltIdentity* CMX_asBuiltFind | ( | const char * | pkg, | |
const char * | con | |||
) |
Find a CMX-as-built identity block by package/constituent name.
pkg | (in) Package name | |
con | (in) Constituent name |
NULL | Identity block not found or invalid pkg con name pointers. | |
x | Pointer to identity block |
const char* CMX_asBuiltGetConstit | ( | CMX_asBuiltIdentity * | ident | ) |
Return (a pointer to) the constituent name recorded by CMX-as-built.
ident | (in) Pointer to identity block |
NULL | Identity block pointer invalid | |
x | Pointer to the constituent name |
unsigned int CMX_asBuiltGetData | ( | CMX_asBuiltIdentity * | ident, | |
CMX_asBuiltIndex | index, | |||
void ** | value | |||
) |
Get data in one of the slots in the user data area.
ident | (in) Pointer to identity block (if NULL, most recent) | |
index | (in) Index of location to fetch from | |
value | (in) Value stored in the index |
0 | Success | |
1 | Identity block pointer invalid or unknown auxiliary block revision |
const char* CMX_asBuiltGetDescrip | ( | CMX_asBuiltIdentity * | ident | ) |
Return (a pointer to) the user supplied descriptive string recorded by CMX-as-built.
ident | (in) Pointer to identity block |
NULL | Identity block pointer invalid | |
x | Pointer to the descriptive string |
const char* CMX_asBuiltGetPackage | ( | CMX_asBuiltIdentity * | ident | ) |
Return (a pointer to) the package name recorded by CMX-as-built.
ident | (in) Pointer to identity block |
NULL | Identity block pointer invalid | |
x | Pointer to the package name |
int CMX_asBuiltGetRevision | ( | CMX_asBuiltIdentity * | ident | ) |
Return the CMX-as-built information revision level.
ident | (in) Pointer to identity block |
-1 | Identity block pointer invalid or unknown auxiliary block revision | |
x | Revision level |
const char* CMX_asBuiltGetSite | ( | CMX_asBuiltIdentity * | ident | ) |
Return (a pointer to) the build site name recorded by CMX-as-built.
ident | (in) Pointer to identity block |
NULL | Identity block pointer invalid | |
x | Pointer to the build site name |
const char* CMX_asBuiltGetTarget | ( | CMX_asBuiltIdentity * | ident | ) |
Return (a pointer to) the build target name recorded by CMX-as-built.
ident | (in) Pointer to identity block |
NULL | Identity block pointer invalid | |
x | Pointer to the build target name |
time_t CMX_asBuiltGetTime | ( | CMX_asBuiltIdentity * | ident | ) |
Return the build time-stamp recorded by CMX-as-built.
ident | (in) Pointer to identity block |
0 | Identity block pointer invalid | |
x | Build time-stamp |
const char* CMX_asBuiltGetUser | ( | CMX_asBuiltIdentity * | ident | ) |
Return (a pointer to) the builder's userid recorded by CMX-as-built.
ident | (in) Pointer to identity block |
NULL | Identity block pointer invalid | |
x | Pointer to the builder's userid |
unsigned int CMX_asBuiltGetVersion | ( | CMX_asBuiltIdentity * | ident, | |
char * | version, | |||
short * | major, | |||
short * | minor, | |||
short * | patch | |||
) |
Return version information as recorded by CMX-as-built.
ident | (in) Pointer to identity block | |
version | (out) Version ('T', 'D', 'P' and 'U') | |
major | (out) Major revision number (only valid when version = 'P') | |
minor | (out) Minor revision number (only valid when version = 'P') | |
patch | (out) Patch revision number (only valid when version = 'P') |
0 | Success | |
x | Identity block pointer invalid or unknown auxiliary block revision |
unsigned int CMX_asBuiltInsert | ( | CMX_asBuiltIdentity * | ident | ) |
Insert a CMX-as-built identity block into the list.
ident | (in) Pointer to identity block |
0 | Success | |
x | Identity block pointer invalid |
unsigned int CMX_asBuiltRemove | ( | CMX_asBuiltIdentity * | ident | ) |
Remove a CMX-as-built identity block from the list.
ident | (in) Pointer to identity block |
0 | Success | |
x | Identity block pointer invalid or not found on list |
CMX_asBuiltIdentity* CMX_asBuiltScan | ( | CMX_asBuiltIdentity * | ident | ) |
Scan the CMX-as-built identity block list.
ident | (in/out) Pointer to identity block |
NULL | End of list or identity block pointer invalid | |
x | Pointer to next CMX-as-built identity block |
CMX_asBuiltIdentity* CMX_asBuiltScanBackward | ( | CMX_asBuiltLoad ** | load | ) |
Scan the CMX-as-built load-order block list (backward chronology).
load | (in/out) Pointer to load-order block |
NULL | End of list or load-order block pointer invalid | |
x | Pointer to next CMX-as-built identity block |
CMX_asBuiltIdentity* CMX_asBuiltScanForward | ( | CMX_asBuiltLoad ** | load | ) |
Scan the CMX-as-built load-order block list (forward chronology).
load | (in/out) Pointer to load-order block |
NULL | End of list or load-order block pointer invalid | |
x | Pointer to next CMX-as-built identity block |
unsigned int CMX_asBuiltSetData | ( | CMX_asBuiltIdentity * | ident, | |
CMX_asBuiltIndex | index, | |||
void * | value | |||
) |
Set one of the slots in the user data area.
ident | (in) Pointer to identity block (if NULL, most recent) | |
index | (in) Index of location to store into | |
value | (in) Value to store in index |
0 | Success | |
x | Identity block pointer invalid or unknown auxiliary block revision |
unsigned int CMX_asBuiltValid | ( | CMX_asBuiltIdentity * | ident | ) |
Validate an identity block pointer.
ident | (in) Pointer to identity block |
0 | Pointer is invalid | |
1 | Pointer is valid |