version 1.2.2.1, 2011/04/30 22:02:59
|
version 1.3, 2011/09/07 13:11:56
|
Line 52 SUCH DAMAGE.
|
Line 52 SUCH DAMAGE.
|
* @ppsVals = Array strings |
* @ppsVals = Array strings |
* return: none |
* return: none |
*/ |
*/ |
inline void sess_FreeValues(char *** __restrict ppsVals) | inline void |
| sess_FreeValues(char *** __restrict ppsVals) |
{ |
{ |
char **ptr; |
char **ptr; |
|
|
|
assert(ppsVals); |
|
if (!ppsVals) |
|
return; |
|
|
for (ptr = *ppsVals; *ptr; ptr++) |
for (ptr = *ppsVals; *ptr; ptr++) |
free(*ptr); |
free(*ptr); |
free(*ppsVals); |
free(*ppsVals); |
Line 68 inline void sess_FreeValues(char *** __restrict ppsVal
|
Line 73 inline void sess_FreeValues(char *** __restrict ppsVal
|
* @ppsVals = Return array strings |
* @ppsVals = Return array strings |
* return: -1 error: in parameter, !=-1 count of returned strings in ppsVals (must be free after use!) |
* return: -1 error: in parameter, !=-1 count of returned strings in ppsVals (must be free after use!) |
*/ |
*/ |
int sess_GetValues(tagSess * __restrict s, char ***ppsVals) | int |
| sess_GetValues(tagSess * __restrict s, char ***ppsVals) |
{ |
{ |
register int i; |
register int i; |
char **valz, *Shared = NULL; |
char **valz, *Shared = NULL; |
Line 124 int sess_GetValues(tagSess * __restrict s, char ***pps
|
Line 130 int sess_GetValues(tagSess * __restrict s, char ***pps
|
// *{pnLen} input is max_size of buffer & output is really taken bytes |
// *{pnLen} input is max_size of buffer & output is really taken bytes |
* return: 0 not found, -1 error: in parameter, >0 get position, if define item merged with IS_DEF |
* return: 0 not found, -1 error: in parameter, >0 get position, if define item merged with IS_DEF |
*/ |
*/ |
int sess_GetValue(tagSess * __restrict s, const char *csAttr, char *psVal, int *pnLen) | int |
| sess_GetValue(tagSess * __restrict s, const char *csAttr, char *psVal, int *pnLen) |
{ |
{ |
register int i; |
register int i; |
int def = IS_VAL; |
int def = IS_VAL; |
Line 176 int sess_GetValue(tagSess * __restrict s, const char *
|
Line 183 int sess_GetValue(tagSess * __restrict s, const char *
|
* @csAttr = Attribute for erasing |
* @csAttr = Attribute for erasing |
* return: 0 Ok, -1 error: in parameter |
* return: 0 Ok, -1 error: in parameter |
*/ |
*/ |
int sess_DelValue(tagSess * __restrict s, const char *csAttr) | int |
| sess_DelValue(tagSess * __restrict s, const char *csAttr) |
{ |
{ |
register int i; |
register int i; |
int ret, attrlen; |
int ret, attrlen; |
Line 239 int sess_DelValue(tagSess * __restrict s, const char *
|
Line 247 int sess_DelValue(tagSess * __restrict s, const char *
|
* return: 0 nothing, -1 error: in parameter, |
* return: 0 nothing, -1 error: in parameter, |
>0 set position, if add item merged with IS_ADD and if define item merged with IS_DEF |
>0 set position, if add item merged with IS_ADD and if define item merged with IS_DEF |
*/ |
*/ |
int sess_SetValue(tagSess * __restrict s, const char *csAttr, const char *psVal) | int |
| sess_SetValue(tagSess * __restrict s, const char *csAttr, const char *psVal) |
{ |
{ |
register int i; |
register int i; |
int upd, ret, def = IS_VAL; |
int upd, ret, def = IS_VAL; |