modules/ca/ca_libs.h

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following functions.

   1 /******************
   2   Copyright (c) 2002                                        RIPE NCC
   3 
   4   All Rights Reserved
   5 
   6   Permission to use, copy, modify, and distribute this software and its
   7   documentation for any purpose and without fee is hereby granted,
   8   provided that the above copyright notice appear in all copies and that
   9   both that copyright notice and this permission notice appear in
  10   supporting documentation, and that the name of the author not be
  11   used in advertising or publicity pertaining to distribution of the
  12   software without specific, written prior permission.
  13 
  14   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  15   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
  16   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
  17   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  18   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  19   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  20   ***************************************/
  21 
  22 #include "ca_defs.h"
  23 
  24 #ifdef __cplusplus
  25 extern "C" {
  26 #endif
  27 
  28 
  29 void stringPack(char *, const char *);
  30 
  31 /* 
  32  * This function prototype is for a function which reads a file and 
  33  * splits it into tokens.
  34  *
  35  */
  36 void opSplitsen(FILE *, gchar **);
  37 
  38 /*********************************************************************
  39  * ca_populateDictionary() function -- populates the dictionary with the 
  40  * contents of the dictionary file.
  41  * 
  42  * Parameters
  43  *    woordenbook[] -- an array of dictionary structures.
  44    *  size -- the size of the array.
  45  *
  46  * Returns
  47  *  Nothing.
  48  *
  49  *********************************************************************/
  50 
  51 void ca_populateDictionary(dict_t [], int);
  52 
  53 void getDictionary(dict_t [], int);
  54 
  55 /*
  56  * readConfig()
  57  * Reads the configuration text file.
  58  */
  59 
  60 void ca_readConfig(const char *, values_t [], int);
  61 
  62 void ca_init(values_t [], values_t []);
  63 
  64 
  65 /*
  66  * The get functions.
  67  */
  68 int ca_get_int(int);
  69 char *ca_get_dirlist(int);
  70 char *ca_get_string(int);
  71 int ca_get_boolean(int symbol);
  72 
  73 /*
  74  * The set functions.
  75         */
  76 void ca_set_int(int);
  77 void ca_set_dirlist(int);
  78 void ca_set_string(int);
  79 void ca_set_boolean(int symbol);
  80 
  81 /*
  82  * The get functions for the database and SOURCE variables.
  83  */
  84 void ca_getDatabase(ca_database_t);
  85 void ca_getSource(ca_database_list_t);
  86 void ca_getSourcePtr(ca_database_list_t *);
  87 void ca_getAllSources(GSList *);
  88 
  89 /*
  90  * The get function for the Dictionary.
  91  *
  92  */
  93 void ca_getDictionary(dict_t [], int);
  94 
  95 /*
  96         * The get function for the string elements of the
  97  * the configuration structure.       
  98  */
  99 void ca_getConfig(values_t [], int);
 100 
 101 /*
 102         * A function that walks through the linked list of sources
 103  * and compares the name of each source with a user-supplied
 104  * name.  If it finds the name of the source, it prints the 
 105  * details of the source.
 106  */
 107 void ca_getAsource(char *, GSList *);
 108 
 109 
 110 /*
 111         * A function that walks through the linked list of sources
 112  * and compares the name of each source with a user-supplied
 113  * name.  If it finds the name of the source, it returns a
 114  * pointer to the structure that represents the source.
 115  */
 116 ca_dbSource_t *ca_getSourceDetails(char *, GSList *);
 117 
 118 /*
 119         * A function that returns a handle to a Source, 
 120  * given its position in the linked-list of sources.
 121  *
 122  */
 123 ca_dbSource_t *ca_get_SourceHandleByPosition(int);
 124 
 125 /* ca_get_SourceHandleByName(char *);
 126         *
 127         * A function that returns a handle to a Source, 
 128  * given its name in the linked-list of sources.
 129  *
 130  */
 131 ca_dbSource_t *ca_get_SourceHandleByName(char *);
 132 
 133 #ifdef __cplusplus
 134 }
 135 #endif
 136 
 137 

/* [<][>][^][v][top][bottom][index][help] */