]> git.draconx.ca Git - gob-dx.git/blobdiff - src/util.h
Release 2.0.1
[gob-dx.git] / src / util.h
index 20692b0de46e02ec0c151ffa35c9b94e27fd919e..8551876fe2db535ea9542dcfa5149a7ce86d211d 100644 (file)
@@ -20,8 +20,8 @@
  * USA.
  */
 
-#ifndef _UTIL_H_
-#define _UTIL_H_
+#ifndef UTIL_H
+#define UTIL_H
 
 enum {
        GOB_WARN,
@@ -46,8 +46,10 @@ void separns_replace_sep(const char *base, char **ns, char **name, char r);
    namespace */
 char * make_pre_macro(const char *base,const  char *pre);
 
-/* get a name usable for a cast from a GTK+ type (without GTK_TYPE_)*/
-const char * get_cast(char *type, gboolean simple_only);
+/* get a name usable for a cast from a GObject (without G_TYPE_)*/
+const char * get_cast (const char *type, gboolean simple_only);
+Type * get_tree_type (const char *type, gboolean simple_only);
+char * get_type (const Type *t, gboolean postfix_to_stars);
 
 enum {
        SPECIAL_2POINTER,
@@ -58,8 +60,4 @@ enum {
 /* returns TRUE if there are any special types at all */
 gboolean setup_special_array(Class *c, gboolean *special_array);
 
-/* get the id without the first underscore, but only if we're removing them */
-const char *get_real_id(const char *id);
-
-#endif
-
+#endif /* UTIL_H */