chibipub

experimental activitypub node in C
git clone git://jb55.com/chibipub
Log | Files | Refs | README | LICENSE

ap_json.h (490B)


      1 
      2 #ifndef CHIBIPUB_APJSON
      3 #define CHIBIPUB_APJSON
      4 
      5 #include "json.h"
      6 #include "http.h"
      7 
      8 #define AP_IS_CONTEXT (1 << 0)
      9 #define AP_IS_START   (1 << 1)
     10 #define AP_HAD_START  (1 << 2)
     11 
     12 struct ap_json {
     13 	struct json_handlers compact_handler;
     14 	struct errors errs;
     15 	struct http_req *req;
     16 	struct sig_header *sig;
     17 	int flags;
     18 };
     19 
     20 void init_ap_json(struct ap_json *, struct json_handlers *inner);
     21 void make_ap_json_pusher(struct json_handlers *h, struct ap_json *out);
     22 
     23 #endif /* CHIBIPUB_APJSON */