X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Finclude%2Fni.h;fp=src%2Finclude%2Fni.h;h=79161901bf6f5e6ca163e664e9fee214ab934a9b;hb=f9280086a261a27b286001ea0fd419de750a57c2;hp=32c90b26406636c5b0dd8d2f3f22eaa02bb97a56;hpb=1bcbd15c9cadce090a0e02bcf1d756e72e6064b3;p=cilux diff --git a/src/include/ni.h b/src/include/ni.h index 32c90b2..7916190 100644 --- a/src/include/ni.h +++ b/src/include/ni.h @@ -4,6 +4,22 @@ /* -------------------------------------------------------------------------- */ +typedef struct n_object{ + k_hashtable* headers; + k_hashtable* content; +} n_object; + +PUBLIC n_object* n_object_new(char* s); +PUBLIC void n_commit(n_object* o); +PUBLIC n_object* n_see(n_object* o, char* uid); +PUBLIC char* n_to_string(n_object* o); +PUBLIC char* n_uid(n_object* o); +PUBLIC char* n_header(n_object* o, char* name); +PUBLIC k_hashtable* n_headers(n_object* o); +PUBLIC k_hashtable* n_content(n_object* o); + +/* -------------------------------------------------------------------------- */ + PUBLIC char* ni_hostname(void); PUBLIC void ni_hostname_set(char* name); @@ -66,7 +82,7 @@ PUBLIC void ni_response(ni_event* evt, char* protocol, char* connection, k_channel* chan); -EXPORT void ni_request(ni_event* evt, +PUBLIC void ni_request(ni_event* evt, char* to, char* method, k_channel* chan);