use create_local

This commit is contained in:
James McKaskill 2013-09-12 14:42:30 -04:00
parent ca1d07f657
commit 448021e7e1
3 changed files with 7 additions and 4 deletions

4
capn.h
View file

@ -10,8 +10,6 @@
extern "C" {
#endif
#define CAPN_SEGID_LOCAL 0xFFFFFFFF
#if defined(__cplusplus) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
#define CAPN_INLINE static inline
#else
@ -44,7 +42,7 @@ struct capn {
/* user settable */
struct capn_segment *(*lookup)(void* /*user*/, uint32_t /*id */);
struct capn_segment *(*create)(void* /*user*/, uint32_t /*id */, int /*sz*/);
struct capn_segment *(*create_local)(void* /*user*/, uint32_t /*id */, int /*sz*/);
struct capn_segment *(*create_local)(void* /*user*/, int /*sz*/);
void *user;
/* zero initialized, user should not modify */
uint32_t segnum;