aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2022-05-08 15:33:32 +0900
committer坂本 貴史 <o-takashi@sakamocchi.jp>2022-05-08 15:36:32 +0900
commit8c135fee9a1e4f42f6c09a03e052c6995e85106d (patch)
treea993e6e822f9557108516332862f59153d031279
parent69e521f3dccad945baaa0ce1c8b11fef5c456124 (diff)
downloadlibhinoko-8c135fee9a1e4f42f6c09a03e052c6995e85106d.tar.gz
fw_iso_ctx: use macro for signal name
Hinoko.FwIsoCtx::stopped signal is emitted by several classes and interfaces. The STOPPED_SIGNAL_NAME macro was added to share the name of signal but actually not used effectively. This commit uses the macro. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r--src/fw_iso_ctx.c2
-rw-r--r--src/fw_iso_ctx_private.h2
-rw-r--r--src/fw_iso_rx_multiple.c2
-rw-r--r--src/fw_iso_rx_single.c2
-rw-r--r--src/fw_iso_tx.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/fw_iso_ctx.c b/src/fw_iso_ctx.c
index 209d473..44a824b 100644
--- a/src/fw_iso_ctx.c
+++ b/src/fw_iso_ctx.c
@@ -44,7 +44,7 @@ static void hinoko_fw_iso_ctx_default_init(HinokoFwIsoCtxInterface *iface)
*
* Emitted when isochronous context is stopped.
*/
- g_signal_new(STOPPED_SIGNAL_NEME,
+ g_signal_new(STOPPED_SIGNAL_NAME,
G_TYPE_FROM_INTERFACE(iface),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET(HinokoFwIsoCtxInterface, stopped),
diff --git a/src/fw_iso_ctx_private.h b/src/fw_iso_ctx_private.h
index e8e8d31..f1de060 100644
--- a/src/fw_iso_ctx_private.h
+++ b/src/fw_iso_ctx_private.h
@@ -85,7 +85,7 @@ enum fw_iso_ctx_prop_type {
#define BYTES_PER_CHUNK_PROP_NAME "bytes-per-chunk"
#define CHUNKS_PER_BUFFER_PROP_NAME "chunks-per-buffer"
-#define STOPPED_SIGNAL_NEME "stopped"
+#define STOPPED_SIGNAL_NAME "stopped"
void fw_iso_ctx_class_override_properties(GObjectClass *gobject_class);
diff --git a/src/fw_iso_rx_multiple.c b/src/fw_iso_rx_multiple.c
index bd453fe..28f760f 100644
--- a/src/fw_iso_rx_multiple.c
+++ b/src/fw_iso_rx_multiple.c
@@ -131,7 +131,7 @@ static void fw_iso_rx_multiple_stop(HinokoFwIsoCtx *inst)
fw_iso_ctx_state_stop(&priv->state);
if (priv->state.running != running)
- g_signal_emit_by_name(G_OBJECT(inst), "stopped", NULL);
+ g_signal_emit_by_name(G_OBJECT(inst), STOPPED_SIGNAL_NAME, NULL);
}
static void fw_iso_rx_multiple_unmap_buffer(HinokoFwIsoCtx *inst)
diff --git a/src/fw_iso_rx_single.c b/src/fw_iso_rx_single.c
index afac268..17d3b0f 100644
--- a/src/fw_iso_rx_single.c
+++ b/src/fw_iso_rx_single.c
@@ -112,7 +112,7 @@ static void fw_iso_rx_single_stop(HinokoFwIsoCtx *inst)
fw_iso_ctx_state_stop(&priv->state);
if (priv->state.running != running)
- g_signal_emit_by_name(G_OBJECT(inst), "stopped", NULL);
+ g_signal_emit_by_name(G_OBJECT(inst), STOPPED_SIGNAL_NAME, NULL);
}
static void fw_iso_rx_single_unmap_buffer(HinokoFwIsoCtx *inst)
diff --git a/src/fw_iso_tx.c b/src/fw_iso_tx.c
index dabb77c..55b21ec 100644
--- a/src/fw_iso_tx.c
+++ b/src/fw_iso_tx.c
@@ -103,7 +103,7 @@ static void fw_iso_tx_stop(HinokoFwIsoCtx *inst)
fw_iso_ctx_state_stop(&priv->state);
if (priv->state.running != running)
- g_signal_emit_by_name(G_OBJECT(inst), "stopped", NULL);
+ g_signal_emit_by_name(G_OBJECT(inst), STOPPED_SIGNAL_NAME, NULL);
}
void fw_iso_tx_unmap_buffer(HinokoFwIsoCtx *inst)