• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

rpmfc.h

Go to the documentation of this file.
00001 #ifndef _H_RPMFC_
00002 #define _H_RPMFC_
00003 
00009 #include <rpm/rpmtypes.h>
00010 #include <rpm/argv.h>   /* for ARGV_t */
00011 #include <rpm/rpmstring.h>      /* for StringBuf */
00012 #include <rpm/rpmspec.h>        /* for Package */
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 extern int _rpmfc_debug;
00019 
00022 typedef struct rpmfc_s * rpmfc;
00023 
00026 enum FCOLOR_e {
00027     RPMFC_BLACK                 = 0,
00028     RPMFC_ELF32                 = (1 <<  0),
00029     RPMFC_ELF64                 = (1 <<  1),
00030     RPMFC_ELFMIPSN32            = (1 <<  2),
00031 #define RPMFC_ELF       (RPMFC_ELF32|RPMFC_ELF64|RPMFC_ELFMIPSN32)
00032         /* (1 << 3) leaks into package headers, reserved */
00033 
00034         /* bits 4-6 unused */
00035     RPMFC_OCAML                 = (1 <<  7),
00036     RPMFC_PKGCONFIG             = (1 <<  8),
00037     RPMFC_LIBTOOL               = (1 <<  9),
00038     RPMFC_BOURNE                = (1 << 10),
00039     RPMFC_MONO                  = (1 << 11),
00040 
00041     RPMFC_SCRIPT                = (1 << 12),
00042     RPMFC_STATIC                = (1 << 13),
00043     RPMFC_NOTSTRIPPED           = (1 << 14),
00044         /* bit 15 unused */
00045 
00046         /* bits 16-19 are enumerated, not bits */
00047     RPMFC_DIRECTORY             = (1 << 16),
00048     RPMFC_SYMLINK               = (2 << 16),
00049     RPMFC_DEVICE                = (3 << 16),
00050     RPMFC_LIBRARY               = (4 << 16),
00051     RPMFC_FONT                  = (5 << 16),
00052     RPMFC_IMAGE                 = (6 << 16),
00053     RPMFC_MANPAGE               = (7 << 16),
00054     RPMFC_TEXT                  = (8 << 16),
00055     RPMFC_DOCUMENT              = (9 << 16),
00056 
00057     RPMFC_ARCHIVE               = (1 << 20),
00058     RPMFC_COMPRESSED            = (1 << 21),
00059     RPMFC_MODULE                = (1 << 22),
00060     RPMFC_EXECUTABLE            = (1 << 23),
00061 
00062     RPMFC_PERL                  = (1 << 24),
00063     RPMFC_JAVA                  = (1 << 25),
00064     RPMFC_PYTHON                = (1 << 26),
00065     RPMFC_PHP                   = (1 << 27),
00066     RPMFC_TCL                   = (1 << 28),
00067 
00068     RPMFC_WHITE                 = (1 << 29),
00069     RPMFC_INCLUDE               = (1 << 30),
00070     RPMFC_ERROR                 = (1 << 31)
00071 };
00072 
00075 typedef enum FCOLOR_e FCOLOR_t;
00076 
00079 typedef const struct rpmfcTokens_s * rpmfcToken;
00080 
00088 int rpmfcExec(ARGV_const_t av, StringBuf sb_stdin, StringBuf * sb_stdoutp,
00089                 int failnonzero);
00090 
00096 int rpmfcColoring(const char * fmstr);
00097 
00105 void rpmfcPrint(const char * msg, rpmfc fc, FILE * fp);
00106 
00112 rpmfc rpmfcFree(rpmfc fc);
00113 
00118 rpmfc rpmfcNew(void);
00119 
00127 rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode);
00128 
00134 rpmRC rpmfcApply(rpmfc fc);
00135 
00142 rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg);
00143 
00149 rpmds rpmfcProvides(rpmfc fc);
00150 
00156 rpmds rpmfcRequires(rpmfc fc);
00157 
00158 #ifdef __cplusplus
00159 }
00160 #endif
00161 
00162 #endif /* _H_RPMFC_ */

Generated on Thu Jan 27 2011 15:55:00 for rpm by  doxygen 1.7.1