00001 /* 00002 $Header: /home/cvsuser/cvsroot/JSOC/proj/mag/synop/apps/keywords.h,v 1.1 2014/02/11 18:30:19 arta Exp $ 00003 $Log: keywords.h,v $ 00004 Revision 1.1 2014/02/11 18:30:19 arta 00005 Finish removing dependencies on Yangs home directory. Added several headers needed for the synop project, but that resided in Yangs myproj directory. 00006 00007 * Revision 1.1 90/10/12 11:58:02 phil 00008 * Initial revision 00009 * 00010 * Revision 1.3 90/10/03 22:39:57 phil 00011 * convert kw_insert to function from macro, change call sequence 00012 * 00013 * Revision 1.2 90/09/19 14:13:49 phil 00014 * name change from gdds to gds 00015 * 00016 * Revision 1.1 90/09/17 15:47:31 phil 00017 * Initial revision 00018 * 00019 */ 00020 00021 /* keywords.h */ 00022 00023 #ifndef KEYWORDS_DEF 00024 #define KEYWORDS_DEF 00025 00026 typedef struct keywords 00027 { 00028 struct keywords *next; 00029 char *key; 00030 char *value; 00031 } KEYWORDS; 00032 00033 extern KEYWORDS *kw_search(); 00034 extern int kw_delete(); 00035 extern char *kw_value(); 00036 extern void kw_insert(); 00037 00038 #ifndef NULL 00039 #define NULL ((char *)0) 00040 #endif 00041 00042 /* 00043 * KEYWORDS is a general token-value storage structure. The set of 00044 * routines kwXXX provides tools to create and use these lists. 00045 * The contents of key and value are of no interest to the kw routines. 00046 * 00047 * next Pointer to the next token-value pair in the list. 00048 * "next" is (char *)NULL in the last item in a list. 00049 * 00050 * key Pointer to a null terminated printable string of ASCII characters. 00051 * The string may not contain white space. 00052 * 00053 * value Pointer to a null terminated string of ASCII characters. 00054 * 00055 */ 00056 00057 #endif