src/server/util/pblock.h

changeset 24
1a7853a4257e
parent 14
b8bf95b39952
child 37
360b9aabe17e
equal deleted inserted replaced
23:a2c8fc23c90e 24:1a7853a4257e
69 69
70 #ifdef INTNSAPI 70 #ifdef INTNSAPI
71 71
72 /* --- Begin function prototypes --- */ 72 /* --- Begin function prototypes --- */
73 73
74 NSPR_BEGIN_EXTERN_C 74 #ifdef __cplusplus
75 extern "C" {
76 #endif
75 77
76 NSAPI_PUBLIC pb_param *INTparam_create(const char *name, const char *value); 78 NSAPI_PUBLIC pb_param *INTparam_create(const char *name, const char *value);
77 79
78 NSAPI_PUBLIC int INTparam_free(pb_param *pp); 80 NSAPI_PUBLIC int INTparam_free(pb_param *pp);
79 81
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

mercurial