Copied on 09 Aug 2012.
Fork of ConfigFile by
Diff: ConfigFile.h
- Revision:
- 5:56d544b8e5c6
- Parent:
- 4:940510a29b44
- Child:
- 6:f6ceafabe9f8
--- a/ConfigFile.h Sun Sep 12 07:53:10 2010 +0000 +++ b/ConfigFile.h Wed Sep 15 12:23:15 2010 +0000 @@ -61,6 +61,10 @@ */ bool removeAll(void); + int getCount(); + + bool getKeyAndValue(int index, char *key, size_t keybufsiz, char *value, size_t valuebufsiz); + /** * Read from the target file. * @@ -83,24 +87,6 @@ */ bool write(char *file, char *header = NULL, FileFormat ff = UNIX); - /** - * Output for debugging. - * - * @deprecated Please do not use this method. - */ - void debout(void) { - printf("===========================================================================\n"); - for (int i = 0; i < MAXCONFIG; i++) { - config_t *cfg = configlist[i]; - printf("[%03d]:", i); - if (cfg == NULL) { - printf("NULL\n"); - } else { - printf("'%s'='%s'\n", cfg->key, cfg->value); - } - } - printf("===========================================================================\n"); - } private: typedef struct { char *key;