Lines 120-126
Link Here
|
120 |
} |
120 |
} |
121 |
|
121 |
|
122 |
|
122 |
|
123 |
bool IniConfig::readInt (ini_fd_t ini, char *key, int &value) |
123 |
bool IniConfig::readInt (ini_fd_t ini, const char *key, int &value) |
124 |
{ |
124 |
{ |
125 |
int i = value; |
125 |
int i = value; |
126 |
if (ini_locateKey (ini, key) < 0) |
126 |
if (ini_locateKey (ini, key) < 0) |
Lines 134-140
Link Here
|
134 |
} |
134 |
} |
135 |
|
135 |
|
136 |
|
136 |
|
137 |
bool IniConfig::readString (ini_fd_t ini, char *key, char *&str) |
137 |
bool IniConfig::readString (ini_fd_t ini, const char *key, char *&str) |
138 |
{ |
138 |
{ |
139 |
char *ret; |
139 |
char *ret; |
140 |
size_t length; |
140 |
size_t length; |
Lines 165-171
Link Here
|
165 |
} |
165 |
} |
166 |
|
166 |
|
167 |
|
167 |
|
168 |
bool IniConfig::readBool (ini_fd_t ini, char *key, bool &boolean) |
168 |
bool IniConfig::readBool (ini_fd_t ini, const char *key, bool &boolean) |
169 |
{ |
169 |
{ |
170 |
int b = boolean; |
170 |
int b = boolean; |
171 |
if (ini_locateKey (ini, key) < 0) |
171 |
if (ini_locateKey (ini, key) < 0) |
Lines 179-185
Link Here
|
179 |
} |
179 |
} |
180 |
|
180 |
|
181 |
|
181 |
|
182 |
bool IniConfig::readChar (ini_fd_t ini, char *key, char &ch) |
182 |
bool IniConfig::readChar (ini_fd_t ini, const char *key, char &ch) |
183 |
{ |
183 |
{ |
184 |
char *str, c = 0; |
184 |
char *str, c = 0; |
185 |
bool ret = readString (ini, key, str); |
185 |
bool ret = readString (ini, key, str); |
Lines 206-212
Link Here
|
206 |
} |
206 |
} |
207 |
|
207 |
|
208 |
|
208 |
|
209 |
bool IniConfig::readTime (ini_fd_t ini, char *key, int &value) |
209 |
bool IniConfig::readTime (ini_fd_t ini, const char *key, int &value) |
210 |
{ |
210 |
{ |
211 |
char *str, *sep; |
211 |
char *str, *sep; |
212 |
int time; |
212 |
int time; |