Gammu internals  1.38.0
gsmmisc.h
Go to the documentation of this file.
1 /* (c) 2001-2005 by Marcin Wiacek, Walek and Michal Cihar */
2 
3 #ifndef __gsm_misc_h
4 #define __gsm_misc_h
5 
6 #include <gammu-file.h>
7 #include <gammu-info.h>
8 #include <gammu-memory.h>
9 
14 
18 GSM_Error VC_StoreLine(char *Buffer, const size_t buff_len, size_t *Pos, const char *format, ...);
19 
23 GSM_Error VC_Store(char *Buffer, const size_t buff_len, size_t *Pos, const char *format, ...);
24 
25 gboolean ReadVCALDateTime(const char *Buffer, GSM_DateTime *dt);
26 GSM_Error VC_StoreDateTime(char *Buffer, const size_t buff_len, size_t *Length, const GSM_DateTime *Date, const char *Start);
27 
28 gboolean ReadVCALDate(char *Buffer, const char *Start, GSM_DateTime *Date, gboolean *is_date_only);
29 GSM_Error VC_StoreDate(char *Buffer, const size_t buff_len, size_t *Length, const GSM_DateTime *Date, const char *Start);
30 
34 GSM_Error VC_StoreBase64(char *Buffer, const size_t buff_len, size_t *Pos, const unsigned char *data, const size_t length);
35 
46 GSM_Error VC_StoreText(char *Buffer, const size_t buff_len, size_t *Length, const unsigned char *Text, const char *Start, const gboolean UTF8);
47 
58 gboolean ReadVCALText(char *Buffer, const char *Start, unsigned char *Value, const gboolean UTF8, GSM_EntryLocation *location);
59 
60 gboolean ReadVCALInt(char *Buffer, const char *Start, int *Value);
61 
62 unsigned char *VCALGetTextPart(unsigned char *Buff, int *pos);
63 
64 #endif
65 
66 /* How should editor hadle tabs in this file? Add editor commands here.
67  * vim: noexpandtab sw=8 ts=8 sts=8:
68  */
gboolean ReadVCALDateTime(const char *Buffer, GSM_DateTime *dt)
Definition: gsmmisc.c:254
GSM_EntryLocation
Definition: gammu-memory.h:348
void GSM_ClearBatteryCharge(GSM_BatteryCharge *bat)
Definition: gsmmisc.c:784
GSM_Error
Definition: gammu-error.h:23
GSM_Error VC_StoreLine(char *Buffer, const size_t buff_len, size_t *Pos, const char *format,...)
Definition: gsmmisc.c:187
gboolean ReadVCALInt(char *Buffer, const char *Start, int *Value)
Definition: gsmmisc.c:313
gboolean ReadVCALDate(char *Buffer, const char *Start, GSM_DateTime *Date, gboolean *is_date_only)
Definition: gsmmisc.c:335
GSM_Error VC_StoreBase64(char *Buffer, const size_t buff_len, size_t *Pos, const unsigned char *data, const size_t length)
Definition: gsmmisc.c:392
int gboolean
Definition: gammu-types.h:23
GSM_Error VC_StoreDate(char *Buffer, const size_t buff_len, size_t *Length, const GSM_DateTime *Date, const char *Start)
Definition: gsmmisc.c:240
GSM_Error VC_StoreDateTime(char *Buffer, const size_t buff_len, size_t *Length, const GSM_DateTime *Date, const char *Start)
Definition: gsmmisc.c:224
GSM_Error VC_StoreText(char *Buffer, const size_t buff_len, size_t *Length, const unsigned char *Text, const char *Start, const gboolean UTF8)
Definition: gsmmisc.c:360
GSM_Error VC_Store(char *Buffer, const size_t buff_len, size_t *Pos, const char *format,...)
Definition: gsmmisc.c:208
gboolean ReadVCALText(char *Buffer, const char *Start, unsigned char *Value, const gboolean UTF8, GSM_EntryLocation *location)
Definition: gsmmisc.c:468
unsigned char * VCALGetTextPart(unsigned char *Buff, int *pos)
Definition: gsmmisc.c:436