Commits

Nikhil Marathe  committed 5941a44

Added Signatures for all Callbacks

  • Participants
  • Parent commits c035a88

Comments (0)

Files changed (1)

File src/callbacks.h

 #include <yajl/yajl_parse.h>
 
 namespace yajljs {
-
-int onNull( void *ctx );
-
-int onBoolean( void *ctx, int b );
-
+int OnNull( void *ctx );
+int OnBoolean( void *ctx, int b );
+int OnInteger( void *ctx, long b );
+int OnDouble( void *ctx, double b );
+int OnNumber( void *ctx, const char *numberVal, unsigned int numberLen );
+int OnString( void *ctx, const unsigned char *stringVal, unsigned int stringLen );
+int OnStartMap( void *ctx );
+int OnMapKey( void *ctx, const unsigned char *key, unsigned int stringLen );
+int OnEndMap( void *ctx );
+int OnStartArray( void *ctx );
+int OnEndArray( void *ctx );
 }
 
 #endif