Files
evolution/e-util/e-util.h
Christopher James Lahey 7453ffb6a8 Got rid of some warnings.
2000-05-06  Christopher James Lahey  <clahey@helixcode.com>

	* e-html-utils.c: Got rid of some warnings.

	* e-util.c, e-util.h: Added e_read_file which takes a filename and
	returns a newly allocated string containing the contents of that
	file.

svn path=/trunk/; revision=2828
2000-05-06 17:04:10 +00:00

41 lines
792 B
C

#ifndef _E_UTIL_H_
#define _E_UTIL_H_
#include <glib.h>
#include <gtk/gtktypeutils.h>
#define E_MAKE_TYPE(l,str,t,ci,i,parent) \
GtkType l##_get_type(void)\
{\
static GtkType type = 0;\
if (!type){\
GtkTypeInfo info = {\
str,\
sizeof (t),\
sizeof (t##Class),\
(GtkClassInitFunc) ci,\
(GtkObjectInitFunc) i,\
NULL, /* reserved 1 */\
NULL, /* reserved 2 */\
(GtkClassInitFunc) NULL\
};\
type = gtk_type_unique (parent, &info);\
}\
return type;\
}
typedef enum {
E_FOCUS_NONE,
E_FOCUS_CURRENT,
E_FOCUS_START,
E_FOCUS_END
} EFocus;
int g_str_compare(const void *x, const void *y);
int g_int_compare(const void *x, const void *y);
void e_free_object_list (GList *list);
char *e_read_file(const char *filename);
#endif /* _E_UTIL_H_ */