Commit 63953e21 authored by spiiroin's avatar spiiroin

[datapipe] Mass rename functions. JB#22475

Use mce_datapipe_xxx prefix for functions that are not "methods" for dealing
with datapipe_t objects.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent d6b8b122
......@@ -51,19 +51,18 @@ void datapipe_remove_output_trigger(datapipe_t *const datapipe, void
void datapipe_init (datapipe_t *const datapipe, const datapipe_filtering_t read_only, const datapipe_data_t free_cache, const gsize datasize, gpointer initial_data);
void datapipe_free (datapipe_t *const datapipe);
void datapipe_handlers_install (datapipe_handler_t *bindings);
void datapipe_handlers_remove (datapipe_handler_t *bindings);
void datapipe_handlers_execute (datapipe_handler_t *bindings);
static gboolean datapipe_handlers_execute_cb (gpointer aptr);
void datapipe_bindings_init (datapipe_bindings_t *self);
void datapipe_bindings_quit (datapipe_bindings_t *self);
/* ------------------------------------------------------------------------- *
* MCE_DATAPIPE
* ------------------------------------------------------------------------- */
void mce_datapipe_init(void);
void mce_datapipe_quit(void);
void mce_datapipe_install_handlers (datapipe_handler_t *bindings);
void mce_datapipe_remove_handlers (datapipe_handler_t *bindings);
void mce_datapipe_execute_handlers (datapipe_handler_t *bindings);
static gboolean mce_datapipe_execute_handlers_cb(gpointer aptr);
void mce_datapipe_init_bindings (datapipe_bindings_t *self);
void mce_datapipe_quit_bindings (datapipe_bindings_t *self);
void mce_datapipe_init (void);
void mce_datapipe_quit (void);
/* ------------------------------------------------------------------------- *
* SUBMODE
......@@ -1781,7 +1780,7 @@ const char *fpstate_repr(fpstate_t state)
"FPSTATE_UNKNOWN");
}
void datapipe_handlers_install(datapipe_handler_t *bindings)
void mce_datapipe_install_handlers(datapipe_handler_t *bindings)
{
if( !bindings )
goto EXIT;
......@@ -1808,7 +1807,7 @@ EXIT:
return;
}
void datapipe_handlers_remove(datapipe_handler_t *bindings)
void mce_datapipe_remove_handlers(datapipe_handler_t *bindings)
{
if( !bindings )
goto EXIT;
......@@ -1835,7 +1834,7 @@ EXIT:
return;
}
void datapipe_handlers_execute(datapipe_handler_t *bindings)
void mce_datapipe_execute_handlers(datapipe_handler_t *bindings)
{
if( !bindings )
goto EXIT;
......@@ -1852,7 +1851,7 @@ EXIT:
return;
}
static gboolean datapipe_handlers_execute_cb(gpointer aptr)
static gboolean mce_datapipe_execute_handlers_cb(gpointer aptr)
{
datapipe_bindings_t *self = aptr;
......@@ -1865,7 +1864,7 @@ static gboolean datapipe_handlers_execute_cb(gpointer aptr)
self->execute_id = 0;
mce_log(LL_INFO, "module=%s", self->module ?: "unknown");
datapipe_handlers_execute(self->handlers);
mce_datapipe_execute_handlers(self->handlers);
EXIT:
return FALSE;
......@@ -1873,22 +1872,22 @@ EXIT:
/** Append triggers/filters to datapipes
*/
void datapipe_bindings_init(datapipe_bindings_t *self)
void mce_datapipe_init_bindings(datapipe_bindings_t *self)
{
mce_log(LL_INFO, "module=%s", self->module ?: "unknown");
/* Set up datapipe callbacks */
datapipe_handlers_install(self->handlers);
mce_datapipe_install_handlers(self->handlers);
/* Get initial values for output triggers from idle
* callback, i.e. when all modules have been loaded */
if( !self->execute_id )
self->execute_id = g_idle_add(datapipe_handlers_execute_cb, self);
self->execute_id = g_idle_add(mce_datapipe_execute_handlers_cb, self);
}
/** Remove triggers/filters from datapipes
*/
void datapipe_bindings_quit(datapipe_bindings_t *self)
void mce_datapipe_quit_bindings(datapipe_bindings_t *self)
{
mce_log(LL_INFO, "module=%s", self->module ?: "unknown");
......@@ -1899,5 +1898,5 @@ void datapipe_bindings_quit(datapipe_bindings_t *self)
}
/* Remove datapipe callbacks */
datapipe_handlers_remove(self->handlers);
mce_datapipe_remove_handlers(self->handlers);
}
......@@ -127,18 +127,18 @@ void datapipe_add_output_trigger (datapipe_t *const datapipe, void (
void datapipe_remove_output_trigger(datapipe_t *const datapipe, void (*trigger)(gconstpointer data));
void datapipe_init (datapipe_t *const datapipe, const datapipe_filtering_t read_only, const datapipe_data_t free_cache, const gsize datasize, gpointer initial_data);
void datapipe_free (datapipe_t *const datapipe);
void datapipe_handlers_install (datapipe_handler_t *bindings);
void datapipe_handlers_remove (datapipe_handler_t *bindings);
void datapipe_handlers_execute (datapipe_handler_t *bindings);
void datapipe_bindings_init (datapipe_bindings_t *self);
void datapipe_bindings_quit (datapipe_bindings_t *self);
/* ------------------------------------------------------------------------- *
* MCE_DATAPIPE
* ------------------------------------------------------------------------- */
void mce_datapipe_init(void);
void mce_datapipe_quit(void);
void mce_datapipe_install_handlers(datapipe_handler_t *bindings);
void mce_datapipe_remove_handlers (datapipe_handler_t *bindings);
void mce_datapipe_execute_handlers(datapipe_handler_t *bindings);
void mce_datapipe_init_bindings (datapipe_bindings_t *self);
void mce_datapipe_quit_bindings (datapipe_bindings_t *self);
void mce_datapipe_init (void);
void mce_datapipe_quit (void);
/* ========================================================================= *
* Macros
......
......@@ -618,14 +618,14 @@ static datapipe_bindings_t common_datapipe_bindings =
*/
static void common_datapipe_init(void)
{
datapipe_bindings_init(&common_datapipe_bindings);
mce_datapipe_init_bindings(&common_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void common_datapipe_quit(void)
{
datapipe_bindings_quit(&common_datapipe_bindings);
mce_datapipe_quit_bindings(&common_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -976,14 +976,14 @@ static datapipe_bindings_t mce_dsme_datapipe_bindings =
*/
static void mce_dsme_datapipe_init(void)
{
datapipe_bindings_init(&mce_dsme_datapipe_bindings);
mce_datapipe_init_bindings(&mce_dsme_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void mce_dsme_datapipe_quit(void)
{
datapipe_bindings_quit(&mce_dsme_datapipe_bindings);
mce_datapipe_quit_bindings(&mce_dsme_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -1036,14 +1036,14 @@ static datapipe_bindings_t mht_datapipe_bindings =
*/
static void mht_datapipe_init(void)
{
datapipe_bindings_init(&mht_datapipe_bindings);
mce_datapipe_init_bindings(&mht_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void mht_datapipe_quit(void)
{
datapipe_bindings_quit(&mht_datapipe_bindings);
mce_datapipe_quit_bindings(&mht_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -433,14 +433,14 @@ static datapipe_bindings_t bsf_datapipe_bindings =
*/
static void bsf_datapipe_init(void)
{
datapipe_bindings_init(&bsf_datapipe_bindings);
mce_datapipe_init_bindings(&bsf_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void bsf_datapipe_quit(void)
{
datapipe_bindings_quit(&bsf_datapipe_bindings);
mce_datapipe_quit_bindings(&bsf_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -329,14 +329,14 @@ static datapipe_bindings_t bluetooth_datapipe_bindings =
*/
static void bluetooth_datapipe_init(void)
{
datapipe_bindings_init(&bluetooth_datapipe_bindings);
mce_datapipe_init_bindings(&bluetooth_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void bluetooth_datapipe_quit(void)
{
datapipe_bindings_quit(&bluetooth_datapipe_bindings);
mce_datapipe_quit_bindings(&bluetooth_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -348,7 +348,7 @@ static datapipe_bindings_t bbl_datapipe_bindings =
static void
bbl_datapipes_init(void)
{
datapipe_bindings_init(&bbl_datapipe_bindings);
mce_datapipe_init_bindings(&bbl_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
......@@ -356,7 +356,7 @@ bbl_datapipes_init(void)
static void
bbl_datapipes_quit(void)
{
datapipe_bindings_quit(&bbl_datapipe_bindings);
mce_datapipe_quit_bindings(&bbl_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -1897,7 +1897,7 @@ static datapipe_bindings_t callstate_datapipe_bindings =
static void
callstate_datapipes_init(void)
{
datapipe_bindings_init(&callstate_datapipe_bindings);
mce_datapipe_init_bindings(&callstate_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
......@@ -1905,7 +1905,7 @@ callstate_datapipes_init(void)
static void
callstate_datapipes_quit(void)
{
datapipe_bindings_quit(&callstate_datapipe_bindings);
mce_datapipe_quit_bindings(&callstate_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -2239,13 +2239,13 @@ static datapipe_bindings_t mdy_datapipe_bindings =
*/
static void mdy_datapipe_init(void)
{
datapipe_bindings_init(&mdy_datapipe_bindings);
mce_datapipe_init_bindings(&mdy_datapipe_bindings);
}
/** Remove triggers/filters from datapipes */
static void mdy_datapipe_quit(void)
{
datapipe_bindings_quit(&mdy_datapipe_bindings);
mce_datapipe_quit_bindings(&mdy_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -1458,7 +1458,7 @@ static datapipe_bindings_t fba_datapipe_bindings =
static void
fba_datapipe_init(void)
{
datapipe_bindings_init(&fba_datapipe_bindings);
mce_datapipe_init_bindings(&fba_datapipe_bindings);
}
/** Remove datapipe triggers/filters
......@@ -1466,7 +1466,7 @@ fba_datapipe_init(void)
static void
fba_datapipe_quit(void)
{
datapipe_bindings_quit(&fba_datapipe_bindings);
mce_datapipe_quit_bindings(&fba_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -1690,7 +1690,7 @@ static void
fingerprint_datapipe_init(void)
{
// triggers
datapipe_bindings_init(&fingerprint_datapipe_bindings);
mce_datapipe_init_bindings(&fingerprint_datapipe_bindings);
}
/** Remove triggers/filters from datapipes */
......@@ -1698,7 +1698,7 @@ static void
fingerprint_datapipe_quit(void)
{
// triggers
datapipe_bindings_quit(&fingerprint_datapipe_bindings);
mce_datapipe_quit_bindings(&fingerprint_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -840,13 +840,13 @@ static datapipe_bindings_t mia_datapipe_bindings =
*/
static void mia_datapipe_init(void)
{
datapipe_bindings_init(&mia_datapipe_bindings);
mce_datapipe_init_bindings(&mia_datapipe_bindings);
}
/** Remove triggers/filters from datapipes */
static void mia_datapipe_quit(void)
{
datapipe_bindings_quit(&mia_datapipe_bindings);
mce_datapipe_quit_bindings(&mia_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -3156,7 +3156,7 @@ static datapipe_bindings_t mce_led_datapipe_bindings =
static void
mce_led_datapipes_init(void)
{
datapipe_bindings_init(&mce_led_datapipe_bindings);
mce_datapipe_init_bindings(&mce_led_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
......@@ -3164,7 +3164,7 @@ mce_led_datapipes_init(void)
static void
mce_led_datapipes_quit(void)
{
datapipe_bindings_quit(&mce_led_datapipe_bindings);
mce_datapipe_quit_bindings(&mce_led_datapipe_bindings);
}
/**
......
......@@ -535,14 +535,14 @@ static datapipe_bindings_t xpkgkit_datapipe_bindings =
*/
static void xpkgkit_datapipe_init(void)
{
datapipe_bindings_init(&xpkgkit_datapipe_bindings);
mce_datapipe_init_bindings(&xpkgkit_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void xpkgkit_datapipe_quit(void)
{
datapipe_bindings_quit(&xpkgkit_datapipe_bindings);
mce_datapipe_quit_bindings(&xpkgkit_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -426,13 +426,13 @@ static datapipe_bindings_t sg_datapipe_bindings =
*/
static void sg_datapipe_init(void)
{
datapipe_bindings_init(&sg_datapipe_bindings);
mce_datapipe_init_bindings(&sg_datapipe_bindings);
}
/** Remove triggers/filters from datapipes */
static void sg_datapipe_quit(void)
{
datapipe_bindings_quit(&sg_datapipe_bindings);
mce_datapipe_quit_bindings(&sg_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -386,14 +386,14 @@ static datapipe_bindings_t usbmode_datapipe_bindings =
static void usbmode_datapipe_init(void)
{
// triggers
datapipe_bindings_init(&usbmode_datapipe_bindings);
mce_datapipe_init_bindings(&usbmode_datapipe_bindings);
}
/** Remove triggers/filters from datapipes */
static void usbmode_datapipe_quit(void)
{
// triggers
datapipe_bindings_quit(&usbmode_datapipe_bindings);
mce_datapipe_quit_bindings(&usbmode_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -3179,7 +3179,7 @@ static datapipe_bindings_t pwrkey_datapipe_bindings =
static void
pwrkey_datapipes_init(void)
{
datapipe_bindings_init(&pwrkey_datapipe_bindings);
mce_datapipe_init_bindings(&pwrkey_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
......@@ -3187,7 +3187,7 @@ pwrkey_datapipes_init(void)
static void
pwrkey_datapipes_quit(void)
{
datapipe_bindings_quit(&pwrkey_datapipe_bindings);
mce_datapipe_quit_bindings(&pwrkey_datapipe_bindings);
}
/* ========================================================================= *
......
......@@ -2289,14 +2289,14 @@ static datapipe_bindings_t tklock_datapipe_bindings =
*/
static void tklock_datapipe_init(void)
{
datapipe_bindings_init(&tklock_datapipe_bindings);
mce_datapipe_init_bindings(&tklock_datapipe_bindings);
}
/** Remove triggers/filters from datapipes
*/
static void tklock_datapipe_quit(void)
{
datapipe_bindings_quit(&tklock_datapipe_bindings);
mce_datapipe_quit_bindings(&tklock_datapipe_bindings);
}
/* ========================================================================= *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment