Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_config.c e_config.h e_gadcon.h e_int_gadcon_config.c 
        e_msgbus.c 


Log Message:
More const added.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.280
retrieving revision 1.281
diff -u -3 -r1.280 -r1.281
--- e_config.c  23 Jan 2008 09:04:54 -0000      1.280
+++ e_config.c  13 Feb 2008 04:51:01 -0000      1.281
@@ -1697,14 +1697,14 @@
                                                          NULL);
 }
 
-EAPI char *
+EAPI const char *
 e_config_profile_get(void)
 {
    return _e_config_profile;
 }
 
 EAPI void
-e_config_profile_set(char *prof)
+e_config_profile_set(const char *prof)
 {
    E_FREE(_e_config_profile);
    _e_config_profile = strdup(prof);
@@ -1740,7 +1740,7 @@
 }
 
 EAPI void
-e_config_profile_add(char *prof)
+e_config_profile_add(const char *prof)
 {
    char buf[4096];
    const char *homedir;
@@ -1751,7 +1751,7 @@
 }
 
 EAPI void
-e_config_profile_del(char *prof)
+e_config_profile_del(const char *prof)
 {
    Ecore_List *files;
    char buf[4096];
@@ -1809,7 +1809,7 @@
 }
 
 EAPI void *
-e_config_domain_load(char *domain, E_Config_DD *edd)
+e_config_domain_load(const char *domain, E_Config_DD *edd)
 {
    Eet_File *ef;
    char buf[4096];
@@ -1864,7 +1864,7 @@
 }
 
 EAPI int
-e_config_domain_save(char *domain, E_Config_DD *edd, void *data)
+e_config_domain_save(const char *domain, E_Config_DD *edd, const void *data)
 {
    Eet_File *ef;
    char buf[4096], buf2[4096];
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.h,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -3 -r1.167 -r1.168
--- e_config.h  23 Jan 2008 09:04:54 -0000      1.167
+++ e_config.h  13 Feb 2008 04:51:01 -0000      1.168
@@ -426,20 +426,20 @@
 EAPI void       e_config_save_flush(void);
 EAPI void       e_config_save_queue(void);
 
-EAPI char      *e_config_profile_get(void);
-EAPI void       e_config_profile_set(char *prof);
+EAPI const char *e_config_profile_get(void);
+EAPI void       e_config_profile_set(const char *prof);
 EAPI Evas_List *e_config_profile_list(void);
-EAPI void       e_config_profile_add(char *prof);
-EAPI void       e_config_profile_del(char *prof);
+EAPI void       e_config_profile_add(const char *prof);
+EAPI void       e_config_profile_del(const char *prof);
 
 EAPI Evas_List *e_config_engine_list(void);
 
 EAPI void       e_config_save_block_set(int block);
 EAPI int        e_config_save_block_get(void);
     
-EAPI void      *e_config_domain_load(char *domain, E_Config_DD *edd);
+EAPI void      *e_config_domain_load(const char *domain, E_Config_DD *edd);
 EAPI int        e_config_profile_save(void);
-EAPI int        e_config_domain_save(char *domain, E_Config_DD *edd, void 
*data);
+EAPI int        e_config_domain_save(const char *domain, E_Config_DD *edd, 
const void *data);
 
 EAPI E_Config_Binding_Mouse  
*e_config_binding_mouse_match(E_Config_Binding_Mouse *eb_in);
 EAPI E_Config_Binding_Key    *e_config_binding_key_match(E_Config_Binding_Key 
*eb_in);
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- e_gadcon.h  9 Nov 2007 07:43:38 -0000       1.43
+++ e_gadcon.h  13 Feb 2008 04:51:01 -0000      1.44
@@ -100,7 +100,7 @@
 {
    int   version;
    /* All members below are part of version 1 */
-   char *name;
+   const char *name;
    struct 
      {
        E_Gadcon_Client *(*init)     (E_Gadcon *gc, const char *name, const 
char *id, const char *style);
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_gadcon_config.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- e_int_gadcon_config.c       13 Jan 2008 23:20:34 -0000      1.47
+++ e_int_gadcon_config.c       13 Feb 2008 04:51:01 -0000      1.48
@@ -204,14 +204,14 @@
      {
         E_Gadcon_Client_Class *cc;
         Evas_Object *icon = NULL;
-        char *lbl = NULL;
+        const char *lbl = NULL;
 
         if (!(cc = l->data)) continue;
         if (cc->func.label) lbl = cc->func.label();
         if (!lbl) lbl = cc->name;
         if (cc->func.icon) icon = cc->func.icon(evas);
         e_widget_ilist_append(cfdata->o_avail, icon, lbl, NULL, 
-                              cc->name, NULL);
+                              (void *)cc->name, NULL);
      }
    e_widget_ilist_go(cfdata->o_avail);
    e_widget_min_size_get(cfdata->o_avail, &w, NULL);
@@ -245,7 +245,7 @@
           {
              E_Gadcon_Client_Class *gcc;
              Evas_Object *icon = NULL;
-             char *lbl = NULL;
+             const char *lbl = NULL;
 
              if (!(gcc = l2->data)) continue;
              if ((cgc->name) && (gcc->name) && 
@@ -255,7 +255,7 @@
                   if (!lbl) lbl = gcc->name;
                   if (gcc->func.icon) icon = gcc->func.icon(evas);
                   e_widget_ilist_append(cfdata->o_sel, icon, lbl, NULL, 
-                                        gcc->name, NULL);
+                                        (void *)gcc->name, NULL);
                }
           }
      }
@@ -369,7 +369,7 @@
 _gad_list_sort(void *data1, void *data2) 
 {
    E_Gadcon_Client_Class *cc, *cc2;
-   char *lbl1 = NULL, *lbl2 = NULL;
+   const char *lbl1 = NULL, *lbl2 = NULL;
 
    if (!(cc = data1)) return 1;
    if (!(cc2 = data2)) return -1;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_msgbus.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_msgbus.c  24 Nov 2007 13:27:49 -0000      1.3
+++ e_msgbus.c  13 Feb 2008 04:51:01 -0000      1.4
@@ -288,7 +288,7 @@
 {
    DBusMessageIter iter;
    DBusMessage *reply;
-   char *profile; 
+   const char *profile;
 
    profile = e_config_profile_get();
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to