studio appeared/disappeared signals
This commit is contained in:
parent
3f71b1bc2d
commit
f1aa5f96be
|
@ -972,6 +972,24 @@ static void lashd_dbus_exit(method_call_t *call)
|
||||||
g_quit = true;
|
g_quit = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
lashd_dbus_signal_emit_studio_appeared()
|
||||||
|
{
|
||||||
|
signal_new_valist(
|
||||||
|
g_dbus_service,
|
||||||
|
"/", INTERFACE_NAME, "StudioAppeared",
|
||||||
|
DBUS_TYPE_INVALID);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
lashd_dbus_signal_emit_studio_disappeared()
|
||||||
|
{
|
||||||
|
signal_new_valist(
|
||||||
|
g_dbus_service,
|
||||||
|
"/", INTERFACE_NAME, "StudioDisappeared",
|
||||||
|
DBUS_TYPE_INVALID);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
lashd_dbus_signal_emit_project_appeared(
|
lashd_dbus_signal_emit_project_appeared(
|
||||||
const char * project_name,
|
const char * project_name,
|
||||||
|
|
|
@ -23,6 +23,12 @@
|
||||||
|
|
||||||
extern const interface_t g_lashd_interface_control;
|
extern const interface_t g_lashd_interface_control;
|
||||||
|
|
||||||
|
void
|
||||||
|
lashd_dbus_signal_emit_studio_appeared();
|
||||||
|
|
||||||
|
void
|
||||||
|
lashd_dbus_signal_emit_studio_disappeared();
|
||||||
|
|
||||||
void
|
void
|
||||||
lashd_dbus_signal_emit_project_appeared(
|
lashd_dbus_signal_emit_project_appeared(
|
||||||
const char * project_name,
|
const char * project_name,
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include "jack.h"
|
#include "jack.h"
|
||||||
#include "jack_proxy.h"
|
#include "jack_proxy.h"
|
||||||
#include "studio.h"
|
#include "studio.h"
|
||||||
|
#include "dbus_iface_control.h"
|
||||||
|
|
||||||
bool
|
bool
|
||||||
jack_conf_container_create(
|
jack_conf_container_create(
|
||||||
|
@ -411,6 +412,7 @@ on_jack_server_started(
|
||||||
{
|
{
|
||||||
g_studio_ptr->jack_conf_stable = true;
|
g_studio_ptr->jack_conf_stable = true;
|
||||||
lash_info("jack conf successfully retrieved");
|
lash_info("jack conf successfully retrieved");
|
||||||
|
lashd_dbus_signal_emit_studio_appeared();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -438,6 +440,7 @@ on_jack_server_stopped(
|
||||||
|
|
||||||
if (!g_studio_ptr->persisted)
|
if (!g_studio_ptr->persisted)
|
||||||
{
|
{
|
||||||
|
lashd_dbus_signal_emit_studio_disappeared();
|
||||||
studio_destroy(g_studio_ptr);
|
studio_destroy(g_studio_ptr);
|
||||||
g_studio_ptr = NULL;
|
g_studio_ptr = NULL;
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -232,6 +232,7 @@ int main(int argc, char ** argv, char ** envp)
|
||||||
|
|
||||||
if (g_studio_ptr != NULL)
|
if (g_studio_ptr != NULL)
|
||||||
{
|
{
|
||||||
|
lashd_dbus_signal_emit_studio_appeared();
|
||||||
studio_destroy(g_studio_ptr);
|
studio_destroy(g_studio_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue