diff options
author | M.Gergő | 2020-05-23 12:38:28 +0200 |
---|---|---|
committer | M.Gergő | 2020-05-23 12:38:28 +0200 |
commit | fa19b34f49f6c85a4abf211762a15285d9f76310 (patch) | |
tree | 31f6caa8d7ac8d83d7db1ca1a7cabfc22547a8c4 /src/lightconfini.h | |
parent | 75cde2390efe114893268da743ca86ac1fcd3571 (diff) | |
download | lightconfini-fa19b34f49f6c85a4abf211762a15285d9f76310.tar.gz lightconfini-fa19b34f49f6c85a4abf211762a15285d9f76310.zip |
New functions: lciniGetFromFileShort(), lciniGetFromFileStr()1.0
Diffstat (limited to 'src/lightconfini.h')
-rw-r--r-- | src/lightconfini.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lightconfini.h b/src/lightconfini.h index b2cdf03..748e1cd 100644 --- a/src/lightconfini.h +++ b/src/lightconfini.h @@ -3,7 +3,7 @@ #include <stdint.h> /* int64_t*/ typedef struct lcini_data { - enum nodeState {lcini_EMPTY, lcini_READY, lcini_CONTINUE, lcini_MULTILINE, lcini_ERROR } nodeState; + enum nodeState {lcini_EMPTY, lcini_READY, lcini_CONTINUE, lcini_MULTILINE, lcini_ERROR, lcini_FLERROR } nodeState; int32_t lineNum; int32_t lineLen; @@ -27,7 +27,7 @@ typedef struct lcini_data { struct lcini_data *next; } lcini_data; - + typedef struct lcini_shortret{ char *ret; int retlen; @@ -46,9 +46,9 @@ int lciniReadOutOwn(const char *filename); lcini_data *lciniGet(lcini_data *head, const char *section, const char *parameter); /* FETCH requested value TO an lcini_data object, FROM lcini_data list*/ int lciniGetStr(lcini_data *head, const char *section, const char *parameter, char *dst, int dstlen); /* FETCH requested value TO null-terminated-string, FROM lcini_data list */ -lcini_shortret *lciniGetShort(lcini_data *head, const char *section, const char *parameter); /* FETCH requested value TO shortret object, FROM lcini_data list*/ -lcini_shortret *lciniGetFromFileShort(const char *filename, const char *section, const char *parameter); /* FETCH requested value TO shortret object FROM file */ -int lciniGetFromFileStr(const char *filename, const char *section, const char *parameter, char *buff, int len); +lcini_shortret *lciniGetShort(lcini_data *head, const char *section, const char *parameter, lcini_shortret *ret); /* FETCH requested value TO shortret object, FROM lcini_data list*/ +lcini_shortret *lciniGetFromFileShort(const char *filename, const char *section, const char *parameter, lcini_shortret *ret); /* FETCH requested value TO shortret object FROM file */ +int lciniGetFromFileStr(const char *filename, const char *section, const char *parameter, char *dst, int dstlen); |