add missing func attributes.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 12 Mar 2010 13:49:21 +0000 (13:49 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 12 Mar 2010 13:49:21 +0000 (13:49 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@47158 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ofono/E_Ofono.h
src/lib/ofono/e_ofono_modem.c
src/lib/ofono/e_ofono_network_reg.c

index aaa2f52..8563789 100644 (file)
@@ -72,15 +72,15 @@ extern "C" {
   EAPI E_Ofono_Element *e_ofono_manager_get(void) EINA_WARN_UNUSED_RESULT;
 
   /* Modem Methods */
-  EAPI bool e_ofono_modem_powered_get(E_Ofono_Element *element, Eina_Bool *powered);
-  EAPI bool e_ofono_modem_powered_set(E_Ofono_Element *element, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data);
-  EAPI bool e_ofono_modem_name_get(E_Ofono_Element *element, const char **name);
+  EAPI bool e_ofono_modem_powered_get(const E_Ofono_Element *element, Eina_Bool *powered) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+  EAPI bool e_ofono_modem_powered_set(E_Ofono_Element *element, Eina_Bool powered, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+  EAPI bool e_ofono_modem_name_get(const E_Ofono_Element *element, const char **name) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
   /* NetworkRegistration Methods */
-  EAPI bool e_ofono_netreg_mode_get(E_Ofono_Element *element, const char **mode);
-  EAPI bool e_ofono_netreg_status_get(E_Ofono_Element *element, const char **status);
-  EAPI bool e_ofono_netreg_operator_get(E_Ofono_Element *element, const char **op);
-  EAPI bool e_ofono_netreg_strength_get(E_Ofono_Element *element, char *strength);
+  EAPI bool e_ofono_netreg_mode_get(const E_Ofono_Element *element, const char **mode) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+  EAPI bool e_ofono_netreg_status_get(const E_Ofono_Element *element, const char **status) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+  EAPI bool e_ofono_netreg_operator_get(const E_Ofono_Element *element, const char **op) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
+  EAPI bool e_ofono_netreg_strength_get(const E_Ofono_Element *element, char *strength) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
   /* Low-Level API:
    *
@@ -91,7 +91,7 @@ extern "C" {
 
   EAPI bool e_ofono_elements_get_all(unsigned int *count, E_Ofono_Element ***p_elements) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
   EAPI bool e_ofono_elements_get_all_type(const char *type, unsigned int *count, E_Ofono_Element ***p_elements) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT;
-  EAPI E_Ofono_Element *e_ofono_element_get(const char *path, const char *interface);
+  EAPI E_Ofono_Element *e_ofono_element_get(const char *path, const char *interface) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT;
 
   EAPI void e_ofono_element_listener_add(E_Ofono_Element *element, void (*cb)(void *data, const E_Ofono_Element *element), const void *data, void (*free_data)(void *data)) EINA_ARG_NONNULL(1, 2);
   EAPI void e_ofono_element_listener_del(E_Ofono_Element *element, void (*cb)(void *data, const E_Ofono_Element *element), const void *data) EINA_ARG_NONNULL(1, 2);
index 6a0bbf0..0aaab1e 100644 (file)
@@ -13,7 +13,7 @@
  * @return 1 on success, 0 otherwise.
  */
 bool
-e_ofono_modem_powered_get(E_Ofono_Element *element, Eina_Bool *powered)
+e_ofono_modem_powered_get(const E_Ofono_Element *element, Eina_Bool *powered)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(powered, 0);
@@ -57,7 +57,7 @@ e_ofono_modem_powered_set(E_Ofono_Element *element, Eina_Bool powered, E_DBus_Me
  * @return 1 on success, 0 otherwise.
  */
 bool
-e_ofono_modem_name_get(E_Ofono_Element *element, const char **name)
+e_ofono_modem_name_get(const E_Ofono_Element *element, const char **name)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, 0);
index 3db4535..0187f38 100644 (file)
@@ -15,7 +15,7 @@
  * @return 1 on success, 0 otherwise.
  */
 bool
-e_ofono_netreg_mode_get(E_Ofono_Element *element, const char **mode)
+e_ofono_netreg_mode_get(const E_Ofono_Element *element, const char **mode)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(mode, 0);
@@ -39,7 +39,7 @@ e_ofono_netreg_mode_get(E_Ofono_Element *element, const char **mode)
  * @return 1 on success, 0 otherwise.
  */
 bool
-e_ofono_netreg_status_get(E_Ofono_Element *element, const char **status)
+e_ofono_netreg_status_get(const E_Ofono_Element *element, const char **status)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(status, 0);
@@ -63,7 +63,7 @@ e_ofono_netreg_status_get(E_Ofono_Element *element, const char **status)
  * @return 1 on success, 0 otherwise.
  */
 bool
-e_ofono_netreg_operator_get(E_Ofono_Element *element, const char **op)
+e_ofono_netreg_operator_get(const E_Ofono_Element *element, const char **op)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(op, 0);
@@ -83,7 +83,7 @@ e_ofono_netreg_operator_get(E_Ofono_Element *element, const char **op)
  * @return 1 on success, 0 otherwise.
  */
 bool
-e_ofono_netreg_strength_get(E_Ofono_Element *element, char *strength)
+e_ofono_netreg_strength_get(const E_Ofono_Element *element, char *strength)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(element, 0);
    EINA_SAFETY_ON_NULL_RETURN_VAL(strength, 0);