r898: Applied Bernard Jungen's latest patch:
[rox-filer.git] / ROX-Filer / src / global.h
blobac340d98b243d9b2f76c2aaf19092e4864ba392e
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 /* global.h is included by most of the other source files, just after
9 * including config.h and the system header files, but before any other
10 * ROX-Filer header files.
13 #include <glib.h>
15 /* ROX-Filer's unique namespace (for use in SOAP messages) */
16 #define ROX_NS "http://rox.sourceforge.net/SOAP/ROX-Filer"
18 #define SOAP_ENV_NS "http://www.w3.org/2001/06/soap-envelope"
20 /* We typedef various pointers here to avoid creating unnecessary
21 * dependencies on the other header files.
24 /* Each filer window has one of these all to itself */
25 typedef struct _FilerWindow FilerWindow;
27 /* There is one Directory object per cached disk directory inode number.
28 * Multiple FilerWindows may share a single directory. Directories
29 * are cached, so a Directories may exist without any filer windows
30 * referencing it at all.
32 typedef struct _Directory Directory;
34 /* Each item in a directory has a DirItem. The contains information from
35 * stat()ing the file, plus a few other bits. There may be several of these
36 * for a single file, if it appears (hard-linked) in several directories.
38 typedef struct _DirItem DirItem;
40 /* This contains pixmaps and masks for an image, and (sometimes) a
41 * half-sized version.
43 typedef struct _MaskedPixmap MaskedPixmap;
45 /* Each MIME type (eg 'text/plain') has one of these. It contains
46 * a link to the image and the type's name (used so that the image can
47 * be refreshed, amoung other things).
49 typedef struct _MIME_type MIME_type;
51 /* There will be one of these if the pinboard is in use. It contains
52 * the name of the pinboard and links to the pinned items inside.
54 typedef struct _Pinboard Pinboard;
56 /* Each icon on the pinboard or a panel has an Icon structure. It contains
57 * the name and path of the icon, as well as its DirItem.
59 typedef struct _Icon Icon;
61 /* There is one of these for each panel window open. Panels work rather
62 * like little pinboards, but with a more rigid layout.
64 typedef struct _Panel Panel;
66 #include <tree.h>
68 /* For very old versions of libxml... */
69 #ifndef xmlChildrenNode
70 # define xmlChildrenNode childs
71 #endif