include/ca_libs.h
/* [<][>][^][v][top][bottom][index][help] */
FUNCTIONS
This source file includes following functions.
1 #include "ca_defs.h"
2
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7
8 void stringPack(char *, const char *);
9
10 /*
11 * This function prototype is for a function which reads a file and
12 * splits it into tokens.
13 *
14 */
15 void opSplitsen(FILE *, gchar **);
16
17 /*********************************************************************
18 * ca_populateDictionary() function -- populates the dictionary with the
19 * contents of the dictionary file.
20 *
21 * Parameters
22 * woordenbook[] -- an array of dictionary structures.
23 * size -- the size of the array.
24 *
25 * Returns
26 * Nothing.
27 *
28 *********************************************************************/
29
30 void ca_populateDictionary(dict_t [], int);
31
32 void getDictionary(dict_t [], int);
33
34 /*
35 * readConfig()
36 * Reads the configuration text file.
37 */
38
39 void ca_readConfig(const char *, values_t [], int);
40
41 void ca_init(values_t [], values_t []);
42
43
44 /*
45 * The get functions.
46 */
47 int ca_get_int(int);
48 char *ca_get_dirlist(int);
49 char *ca_get_string(int);
50 int ca_get_boolean(int symbol);
51
52 /*
53 * The set functions.
54 */
55 void ca_set_int(int);
56 void ca_set_dirlist(int);
57 void ca_set_string(int);
58 void ca_set_boolean(int symbol);
59
60 /*
61 * The get functions for the database and SOURCE variables.
62 */
63 void ca_getDatabase(ca_database_t);
64 void ca_getSource(ca_database_list_t);
65 void ca_getSourcePtr(ca_database_list_t *);
66 void ca_getAllSources(GSList *);
67
68 /*
69 * The get function for the Dictionary.
70 *
71 */
72 void ca_getDictionary(dict_t [], int);
73
74 /*
75 * The get function for the string elements of the
76 * the configuration structure.
77 */
78 void ca_getConfig(values_t [], int);
79
80 /*
81 * A function that walks through the linked list of sources
82 * and compares the name of each source with a user-supplied
83 * name. If it finds the name of the source, it prints the
84 * details of the source.
85 */
86 void ca_getAsource(char *, GSList *);
87
88
89 /*
90 * A function that walks through the linked list of sources
91 * and compares the name of each source with a user-supplied
92 * name. If it finds the name of the source, it returns a
93 * pointer to the structure that represents the source.
94 */
95 ca_dbSource_t *ca_getSourceDetails(char *, GSList *);
96
97 /*
98 * A function that returns a handle to a Source,
99 * given its position in the linked-list of sources.
100 *
101 */
102 ca_dbSource_t *ca_get_SourceHandleByPosition(int);
103
104 /* ca_get_SourceHandleByName(char *);
105 *
106 * A function that returns a handle to a Source,
107 * given its name in the linked-list of sources.
108 *
109 */
110 ca_dbSource_t *ca_get_SourceHandleByName(char *);
111
112 #ifdef __cplusplus
113 }
114 #endif
115
116