EVE 1.0
json-app.h File Reference

JSON application API. More...

#include <stdint.h>
#include <stdbool.h>
#include <http/types.h>
#include <toc/toc-app.h>
Include dependency graph for json-app.h:

Go to the source code of this file.

Data Structures

struct  tiny_seq_t
 Lett string gjennomføring. More...
 
struct  val_t
 Generel verdi. More...
 

Macros

#define JSON_BASE_ID   (0x100)
 

Enumerations

Functions

static const struct tiny_seq_tJsonValAsString (const struct val_t *Val)
 val_t tilgangsmetod, gir string verdi More...
 
static int JsonValAsInt (const struct val_t *Val)
 val_t tilgangsmetod, gir integer verdi More...
 
static float JsonValAsFloat (const struct val_t *Val)
 val_t tilgangsmetod, gir float verdi More...
 
static int JsonValAsBool (const struct val_t *Val)
 val_t tilgangsmetod, gir bool verdi More...
 
static bool JsonTocIsArray (const struct toc_t *Entry)
 
void JsonAppGetToc (struct toc_blob_t *Ptr)
 Gir "table of content" (TOC). More...
 
int JsonAppGet (struct toc_var_context_t *State, int Id, int Index, struct val_t *Val)
 "get" opphandler. More...
 
int JsonAppGetStructBegin (struct toc_var_context_t *State, int Id, int Index)
 beginnelse av "get" opphandler for structur. More...
 
int JsonAppGetStructEnd (struct toc_var_context_t *State, int Id, int Index)
 slutt av "get" opphandler for structur. More...
 
int JsonAppSet (struct toc_var_context_t *State, int Id, int Index, struct val_t *Val)
 "set" opphandler. More...
 
int JsonAppSetStructBegin (struct toc_var_context_t *State, int Id, int Index)
 beginnelse av "set" opphandler for structur. More...
 
int JsonAppSetStructEnd (struct toc_var_context_t *State, int Id, int Index)
 slutt av "set" opphandler for structur. More...
 
int JsonAppPushBegin (struct toc_file_context_t *State, uint8_t Id, const char *File, unsigned Size)
 Beginnelse av "file push" operasjon. More...
 
int JsonAppPush (struct toc_file_context_t *State, unsigned Pos, unsigned Size, const void *Data)
 Opdatere en porsjon av fil i "file push" operasjon. More...
 
int JsonAppPushEnd (struct toc_file_context_t *State)
 "file push" operasjon er ferdig. More...
 
int JsonAppPullBegin (struct toc_file_context_t *State, uint8_t Id, const char *File)
 Beginnelse av "file pull" operasjon. More...
 
int JsonAppPull (struct toc_file_context_t *State, unsigned Pos, unsigned Size, void *Data)
 Lese en porsjon av fil i "file pull" operasjon. More...
 
int JsonAppPullEnd (struct toc_file_context_t *State)
 "file pull" operasjon er ferdig. More...
 
int JsonAppClear ()
 slutt av alle opphandlere for structurer. More...
 
void JsonAppClientConnect ()
 En mobil klient har tilkoblet på serveren. More...
 
void JsonAppClientDisconnect ()
 En mobil klienten var frakoblet fra serveren. More...
 

Detailed Description

JSON application API.

Todo:
TODO: XXX: Documentation to be translated and updated.

Definition in file json-app.h.