const correctness
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 30 Jul 2003 08:25:34 +0000 (08:25 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Wed, 30 Jul 2003 08:25:34 +0000 (08:25 +0000)
ChangeLog.claws
configure.ac
src/common/hooks.c
src/common/hooks.h

index 712b3fe..0d91abf 100644 (file)
@@ -1,9 +1,15 @@
+2003-07-30 [alfons]    0.9.3claws79
+
+       * src/common/hooks[.ch]
+               const correctness
+
 2003-07-30 [darko]     0.9.3claws78
 
        * src/summaryview.c
                make it compile again
 
 2003-07-30 [luke]      0.9.3claws77
+
        * src/crash.c
        * src/main.c
                o added/moved signal handlers for SIGTERM (normal kill command) 
index 63f358f..657f982 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=3
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=78
+EXTRA_VERSION=79
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index cfca1b3..4d0604b 100644 (file)
@@ -28,7 +28,7 @@
 
 static GHashTable *hooklist_table;
 
-GHookList *hooks_get_hooklist(gchar *hooklist_name)
+GHookList *hooks_get_hooklist(const gchar *hooklist_name)
 {
        GHookList *hooklist;
 
@@ -46,7 +46,7 @@ GHookList *hooks_get_hooklist(gchar *hooklist_name)
        return hooklist;
 }
 
-guint hooks_register_hook(gchar *hooklist_name,
+guint hooks_register_hook(const gchar *hooklist_name,
                          SylpheedHookFunction hook_func,
                          gpointer userdata)
 {
@@ -72,7 +72,7 @@ guint hooks_register_hook(gchar *hooklist_name,
        return hook->hook_id;
 }
 
-void hooks_unregister_hook(gchar *hooklist_name,
+void hooks_unregister_hook(const gchar *hooklist_name,
                           guint hook_id)
 {
        GHookList *hooklist;
@@ -108,7 +108,7 @@ static void hooks_marshal(GHook *hook, gpointer data)
        }
 }
 
-gboolean hooks_invoke(gchar *hooklist_name,
+gboolean hooks_invoke(const gchar *hooklist_name,
                  gpointer source)
 {
        GHookList *hooklist;
index 47a1140..11e0047 100644 (file)
 typedef gboolean (*SylpheedHookFunction)       (gpointer source,
                                                 gpointer userdata);
 
-guint hooks_register_hook      (gchar                  *hooklist_name,
+guint hooks_register_hook      (const gchar            *hooklist_name,
                                 SylpheedHookFunction    hook_func,
                                 gpointer                userdata);
-void hooks_unregister_hook     (gchar                  *hooklist_name,
+void hooks_unregister_hook     (const gchar            *hooklist_name,
                                 guint                   hook_id);
-gboolean hooks_invoke          (gchar                  *hooklist_name,
+gboolean hooks_invoke          (const gchar            *hooklist_name,
                                 gpointer                source);
 
 #endif /* HOOKS_H */