"Fossies" - the Fresh Open Source Software Archive

Member "rpm2html-1.11.2/rpm2html.h" (9 Nov 2010, 2904 Bytes) of package /linux/privat/rpm2html-1.11.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "rpm2html.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * rpm2html.h : general resources about rpm2html
    3  *
    4  * See Copyright for the status of this software.
    5  *
    6  * $Id: rpm2html.h,v 1.83 2010/11/09 22:25:55 hany Exp $
    7  */
    8 
    9 #ifndef __RPM2HTML_H__
   10 #define __RPM2HTML_H__
   11 
   12 #include "memory.h"
   13 #include "stringbuf.h"
   14 
   15 /*
   16  * General setup default values overriden by config file.
   17  */
   18 #define RPM2HTML_NAME   "rpm2html"
   19 #define RPM2HTML_VER    "1.11.2"
   20 #define RPM2HTML_URL    "http://www.nongnu.org/rpm2html/"
   21 #define RPM2HTML_MAINT  "Peter Hanecak"
   22 #define RPM2HTML_MAIL   "hany@hany.sk"
   23 
   24 /*
   25  * Constants.
   26  */
   27 
   28 #define MAX_COLOR_PER_LINE  4
   29 #define MAX_TABLE_LENGHT    20
   30 #define MAX_PAGE_LENGHT     250
   31 #define PACKAGE_FIELD_WIDTH 250
   32 #define DESCRIPTION_FIELD_WIDTH 450
   33 #define SYSTEM_FIELD_WIDTH  95
   34 #define MAX_EXTRA_HEADERS   10
   35 #define MAX_NAME_LIST_LENGHT    75
   36 #define DEFAULT_RDF_COUNT_LIMIT 20
   37 
   38 typedef enum rpm_dep_flag {
   39     RPM2HTML_REQ_NONE = 0,
   40     RPM2HTML_REQ_LT = 1,
   41     RPM2HTML_REQ_LEQ,
   42     RPM2HTML_REQ_GT,
   43     RPM2HTML_REQ_GEQ,
   44     RPM2HTML_REQ_EQU
   45 } rpm_dep_flag;
   46 
   47 /*
   48  * Unmodifiable variables.
   49  */
   50 extern char *rpm2html_rpm2html_name;    /* OK */
   51 extern char *rpm2html_rpm2html_ver; /* OK */
   52 extern char *rpm2html_rpm2html_url; /* OK */
   53 extern char *rpm2html_rpm2html_thishost;
   54 
   55 /*
   56  * global variables.
   57  */
   58 extern int   rpm2htmlVerbose;
   59 extern char *rpm2html_maint;    /* OK */
   60 extern char *rpm2html_mail; /* OK */
   61 extern char *rpm2html_help;
   62 extern char *rpm2html_dir;  /* OK */
   63 extern char *rpm2html_name; /* OK */
   64 extern char *rpm2html_url;  /* OK */
   65 #ifdef WITH_SQL
   66 extern char *rpm2html_search;
   67 #endif
   68 extern char *rpm2html_ftp;  /* OK */
   69 extern char *rpm2html_ftpsrc;   /* OK */
   70 extern char *rpm2html_host; /* OK */
   71 extern int   rpm2html_dump_rdf;
   72 extern int   rpm2html_dump_rdf_resources;
   73 extern int   rpm2html_dump_html;
   74 extern int   rpm2html_dump_html_only_if_rpm_newer;
   75 #ifdef HAVE_LIBTEMPLATE
   76 extern char *rpm2html_html_template;
   77 #endif
   78 extern char *rpm2html_rdf_dir;  /* OK */
   79 extern char *rpm2html_rdf_resources_dir;    /* OK */
   80 extern int   rpm2html_rdf_count_limit;
   81 extern int   rpm2html_build_tree;
   82 extern int   rpm2html_cve_linking;
   83 extern int   rpm2html_no_sql;
   84 extern int   rpm2html_protect_emails;
   85 
   86 extern int   rpm2html_files;
   87 extern int   rpm2html_size;
   88 extern int   rpm2html_install_files;
   89 extern int   rpm2html_install_size;
   90 
   91 extern char *rpm2html_headers_name[MAX_EXTRA_HEADERS];  /* OK */
   92 extern char *rpm2html_headers_url[MAX_EXTRA_HEADERS];   /* OK */
   93 extern int   rpm2html_nb_extra_headers; 
   94 
   95 extern int   nb_metadata_mirrors;
   96 extern int   max_metadata_mirrors;
   97 extern char **metadata_mirrors;
   98 
   99 extern int readConfigFile(char *filename);
  100 extern void addConfigEntry(char *rpmdir, char *name, char *value);
  101 extern void reinitialize(void);
  102 extern char *xmlStrdupHTML(const char *str);
  103 extern void rpmDirCleanupAll(void);
  104 extern void cleanupCleanup(void);
  105 extern void htmlCleanup(void);
  106 extern void rpmopenCleanup(void);
  107 
  108 #endif /* __RPM2HTML_H__ */