Gammu internals  1.38.0
obexgen.h
Go to the documentation of this file.
1 /* (c) 2003 by Marcin Wiacek */
2 /* (c) 2006 by Michal Cihar */
3 
17 #ifndef obexgen_h
18 #define obexgen_h
19 
20 #ifndef GSM_USED_IRDAOBEX
21 # define GSM_USED_IRDAOBEX
22 #endif
23 #ifndef GSM_USED_BLUEOBEX
24 # define GSM_USED_BLUEOBEX
25 #endif
26 
30 typedef enum {
34  OBEX_None = 1,
47 } OBEX_Service;
48 
52 typedef struct {
56  int IEL;
62 
63 typedef struct {
66  GSM_File Files[500];
68 
69  int FrameSize;
75 
79  int PbCount;
83  int *PbOffsets;
87  int *PbIndex;
95  char **PbLUID;
111  char *PbData;
127  int *TodoIndex;
135  char **TodoLUID;
147  int ReadTodo;
151  int CalCount;
159  int *CalIndex;
167  char **CalLUID;
183  char *CalData;
199  int *NoteIndex;
207  char **NoteLUID;
223  char *NoteData;
231  char *OBEXDevinfo;
243  unsigned char *m_obex_appdata;
267  unsigned char *m_obex_contacts_buffer;
279  unsigned char *m_obex_calendar_buffer;
291  unsigned char connection_id[4];
293 
294 GSM_Error OBEXGEN_GetBinaryFile(GSM_StateMachine *s, const char *FileName, unsigned char ** Buffer, size_t *len);
295 GSM_Error OBEXGEN_GetTextFile(GSM_StateMachine *s, const char *FileName, char ** Buffer);
296 GSM_Error OBEXGEN_SetFile(GSM_StateMachine *s, const char *FileName, const unsigned char *Buffer, size_t Length, gboolean HardDelete);
297 
298 #endif
299 
301 
302 /* How should editor hadle tabs in this file? Add editor commands here.
303  * vim: noexpandtab sw=8 ts=8 sts=8:
304  */
gboolean UpdateCalLUID
Definition: obexgen.h:175
size_t m_obex_contacts_buffer_pos
Definition: obexgen.h:271
size_t m_obex_calendar_buffer_size
Definition: obexgen.h:287
unsigned char * m_obex_calendar_buffer
Definition: obexgen.h:279
OBEX_Service Service
Definition: obexgen.h:70
size_t m_obex_calendar_buffer_pos
Definition: obexgen.h:283
unsigned char * m_obex_appdata
Definition: obexgen.h:243
gboolean UpdateTodoLUID
Definition: obexgen.h:143
gboolean HD
Definition: obexgen.h:60
GSM_Error
Definition: gammu-error.h:23
unsigned char * m_obex_contacts_buffer
Definition: obexgen.h:267
GSM_Error OBEXGEN_SetFile(GSM_StateMachine *s, const char *FileName, const unsigned char *Buffer, size_t Length, gboolean HardDelete)
OBEX_Service InitialService
Definition: obexgen.h:74
IRMC_Capability CalCap
Definition: obexgen.h:179
int gboolean
Definition: gammu-types.h:23
IRMC_Capability NoteCap
Definition: obexgen.h:219
GSM_Error OBEXGEN_GetTextFile(GSM_StateMachine *s, const char *FileName, char **Buffer)
int m_obex_contacts_nexterror
Definition: obexgen.h:255
OBEX_Service
Definition: obexgen.h:30
int m_obex_calendar_nexterror
Definition: obexgen.h:263
gboolean UpdatePbLUID
Definition: obexgen.h:103
size_t m_obex_contacts_buffer_size
Definition: obexgen.h:275
IRMC_Capability PbCap
Definition: obexgen.h:107
gboolean FileLastPart
Definition: obexgen.h:67
GSM_Error OBEXGEN_GetBinaryFile(GSM_StateMachine *s, const char *FileName, unsigned char **Buffer, size_t *len)
gboolean UpdateNoteLUID
Definition: obexgen.h:215