330 |
332 |
331 NSAPI_PUBLIC void pblock_kvreplace(const pb_key *key, const char *value, int valuelen, pblock *pb); |
333 NSAPI_PUBLIC void pblock_kvreplace(const pb_key *key, const char *value, int valuelen, pblock *pb); |
332 |
334 |
333 NSAPI_PUBLIC pb_param *pblock_kninsert(const pb_key *key, int value, pblock *pb); |
335 NSAPI_PUBLIC pb_param *pblock_kninsert(const pb_key *key, int value, pblock *pb); |
334 |
336 |
335 NSAPI_PUBLIC pb_param *pblock_kllinsert(const pb_key *key, PRInt64 value, pblock *pb); |
337 NSAPI_PUBLIC pb_param *pblock_kllinsert(const pb_key *key, int64_t value, pblock *pb); |
336 |
338 |
337 #ifdef __cplusplus |
339 #ifdef __cplusplus |
338 inline const pb_key *param_key(pb_param *pp) |
340 inline const pb_key *param_key(pb_param *pp) |
339 { |
341 { |
340 return *(const pb_key **)(pp + 1); /* XXX see plist_pvt.h */ |
342 return *(const pb_key **)(pp + 1); /* XXX see plist_pvt.h */ |
341 } |
343 } |
342 #endif |
344 #endif |
343 |
345 |
344 #define PARAM_KEY(pp) *(const pb_key **)(pp + 1) /* new */ |
346 #define PARAM_KEY(pp) *(const pb_key **)(pp + 1) /* new */ |
345 |
347 |
346 NSPR_END_EXTERN_C |
348 #ifdef __cplusplus |
|
349 } |
|
350 #endif |
347 |
351 |
348 #define param_create INTparam_create |
352 #define param_create INTparam_create |
349 #define param_free INTparam_free |
353 #define param_free INTparam_free |
350 #define pblock_create INTpblock_create |
354 #define pblock_create INTpblock_create |
351 #define pblock_free INTpblock_free |
355 #define pblock_free INTpblock_free |