wmail: use continue instead of goto.
[dockapps.git] / wmcapshare / obex_io.h
blobdcdc5b3ed353133906c93c6d7c565b0270730dc6
1 #ifndef OBEX_IO_H
2 #define OBEX_IO_H
4 #include <glib.h>
6 /* Application defined headers */
7 #define HEADER_CREATOR_ID 0xcf
9 #define ADDRESS_BOOK 0x61646472 /* "addr" *.vcf */
10 #define MEMO_PAD 0x6d656d6f /* "memo" *.txt */
11 #define TO_DO_LIST 0x746f646f /* "todo" *.vcs */
12 #define DATE_BOOK 0x64617465 /* "date" *.vcs */
13 #define PILOT_RESOURCE 0x6c6e6368 /* "Inch" *.prc */
15 gint get_filesize(const char *filename);
16 obex_object_t *build_object_from_file(obex_t *handle, const char *filename);
17 gint safe_save_file(gchar *name, const guint8 *buf, gint len, gchar *savedir);
18 guint8* easy_readfile(const char *filename, int *file_size);
20 /* hack to distinguish between different obex protocols */
21 extern int obex_protocol_type;
22 #define OBEX_PROTOCOL_GENERIC 0
23 #define OBEX_PROTOCOL_WIN95_IRXFER 1
24 /* win95 irxfer ( does not like palm creatorid header ) */
26 #endif