SpaceBubble  v0.98
http.h
Go to the documentation of this file.
1 
22 #ifndef HTTP_H
23 #define HTTP_H
24 
25 //==============================================================================
26 // C++ header
27 //==============================================================================
28 #ifdef __cplusplus
29  extern "C" {
30 #endif /* __cplusplus */
31 
32 enum
33 {
47 };
48 
49 // Init tcp layer
50 void tcp_init_layer(void);
51 
52 // Start HTTP thread
53 int tcp_start_thread( const char *name, const char *version,
54  const char *id1, const char *url1,
55  const char *id2, const char *url2,
56  const char *id3, const char *url3,
57  const char *id4, const char *url4,
58  const char *token, const char *userData2,
59  const char *userData3);
60 
61 // Stop HTTP thread
62 int tcp_stop_thread(void);
63 
64 // Fetch current thread state (String)
65 char *tcp_get_state(void);
66 
67 // Feth current thread state (int)
68 int tcp_get_state_nr(void);
69 
70 // Set current thread state (int)
71 int tcp_set_state(int state, char *userData3);
72 
73 // Get version (String format)
74 char *tcp_get_version(void);
75 
76 // Get releasenotes (HTML format)
77 char *tcp_get_releasenote(void);
78 
79 // Get today highscore (XML format)
80 char *tcp_get_today_highscore(void);
81 
82 // Get global highscore (XML format)
83 char *tcp_get_global_highscore(void);
84 
85 #ifdef __cplusplus
86  }
87 #endif /* __cplusplus */
88 
89 #endif
Definition: http.h:40
Definition: http.h:39
Definition: http.h:35
void tcp_init_layer(void)
Definition: http.c:1534
int tcp_stop_thread(void)
Definition: http.c:1615
char * tcp_get_releasenote(void)
Definition: http.c:1495
int tcp_start_thread(const char *name, const char *version, const char *id1, const char *url1, const char *id2, const char *url2, const char *id3, const char *url3, const char *id4, const char *url4, const char *token, const char *userData2, const char *userData3)
Definition: http.c:1563
Definition: http.h:37
Definition: http.h:36
int tcp_get_state_nr(void)
Definition: http.c:1389
Definition: http.h:38
Definition: http.h:44
char name[MAX_NAME_SIZE]
Definition: settings.h:31
Definition: http.h:46
Definition: http.h:34
Definition: http.h:43
char * tcp_get_today_highscore(void)
Definition: http.c:1521
Definition: http.h:41
char * tcp_get_state(void)
Definition: http.c:1400
Definition: http.h:42
int tcp_set_state(int state, char *userData3)
Definition: http.c:1467
char * tcp_get_global_highscore(void)
Definition: http.c:1508
char * tcp_get_version(void)
Definition: http.c:1482
Definition: http.h:45