mirror of git://git.sysmocom.de/ofono
core: M15 coding style fix
This commit is contained in:
parent
819fb91144
commit
480f7dffd9
|
@ -415,7 +415,7 @@ gboolean __ofono_dbus_valid_object_path(const char *path)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
DBusConnection *ofono_dbus_get_connection()
|
DBusConnection *ofono_dbus_get_connection(void)
|
||||||
{
|
{
|
||||||
return g_connection;
|
return g_connection;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
static GMainLoop *event_loop;
|
static GMainLoop *event_loop;
|
||||||
|
|
||||||
void __ofono_exit()
|
void __ofono_exit(void)
|
||||||
{
|
{
|
||||||
g_main_loop_quit(event_loop);
|
g_main_loop_quit(event_loop);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ static GDBusSignalTable manager_signals[] = {
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
int __ofono_manager_init()
|
int __ofono_manager_init(void)
|
||||||
{
|
{
|
||||||
DBusConnection *conn = ofono_dbus_get_connection();
|
DBusConnection *conn = ofono_dbus_get_connection();
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
@ -107,7 +107,7 @@ int __ofono_manager_init()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __ofono_manager_cleanup()
|
void __ofono_manager_cleanup(void)
|
||||||
{
|
{
|
||||||
DBusConnection *conn = ofono_dbus_get_connection();
|
DBusConnection *conn = ofono_dbus_get_connection();
|
||||||
|
|
||||||
|
|
|
@ -1560,12 +1560,12 @@ static void sim_watch(struct ofono_atom *atom,
|
||||||
modem, NULL);
|
modem, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __ofono_modemwatch_init()
|
void __ofono_modemwatch_init(void)
|
||||||
{
|
{
|
||||||
g_modemwatches = __ofono_watchlist_new(g_free);
|
g_modemwatches = __ofono_watchlist_new(g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __ofono_modemwatch_cleanup()
|
void __ofono_modemwatch_cleanup(void)
|
||||||
{
|
{
|
||||||
__ofono_watchlist_free(g_modemwatches);
|
__ofono_watchlist_free(g_modemwatches);
|
||||||
}
|
}
|
||||||
|
@ -1850,7 +1850,7 @@ void ofono_modem_driver_unregister(const struct ofono_modem_driver *d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void __ofono_modem_shutdown()
|
void __ofono_modem_shutdown(void)
|
||||||
{
|
{
|
||||||
struct ofono_modem *modem;
|
struct ofono_modem *modem;
|
||||||
GSList *l;
|
GSList *l;
|
||||||
|
|
12
src/ofono.h
12
src/ofono.h
|
@ -25,12 +25,12 @@
|
||||||
|
|
||||||
#include <ofono/types.h>
|
#include <ofono/types.h>
|
||||||
|
|
||||||
void __ofono_exit();
|
void __ofono_exit(void);
|
||||||
|
|
||||||
int __ofono_manager_init();
|
int __ofono_manager_init(void);
|
||||||
void __ofono_manager_cleanup();
|
void __ofono_manager_cleanup(void);
|
||||||
|
|
||||||
void __ofono_modem_shutdown();
|
void __ofono_modem_shutdown(void);
|
||||||
|
|
||||||
#include <ofono/log.h>
|
#include <ofono/log.h>
|
||||||
|
|
||||||
|
@ -174,8 +174,8 @@ void __ofono_atom_free(struct ofono_atom *atom);
|
||||||
|
|
||||||
typedef void (*ofono_modemwatch_cb_t)(struct ofono_modem *modem,
|
typedef void (*ofono_modemwatch_cb_t)(struct ofono_modem *modem,
|
||||||
gboolean added, void *data);
|
gboolean added, void *data);
|
||||||
void __ofono_modemwatch_init();
|
void __ofono_modemwatch_init(void);
|
||||||
void __ofono_modemwatch_cleanup();
|
void __ofono_modemwatch_cleanup(void);
|
||||||
unsigned int __ofono_modemwatch_add(ofono_modemwatch_cb_t cb, void *user,
|
unsigned int __ofono_modemwatch_add(ofono_modemwatch_cb_t cb, void *user,
|
||||||
ofono_destroy_func destroy);
|
ofono_destroy_func destroy);
|
||||||
gboolean __ofono_modemwatch_remove(unsigned int id);
|
gboolean __ofono_modemwatch_remove(unsigned int id);
|
||||||
|
|
Loading…
Reference in New Issue