aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2023-07-23 18:09:54 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2023-10-03 21:45:12 +0900
commit7884354d1debd7134aab82f3eca528cc1541e256 (patch)
treecd5fec153ac0588a9fda378c3f5b7406863e2923
parent26410b28997ed0924a5e2bd2c5b508699079fa61 (diff)
downloadlibhinawa-7884354d1debd7134aab82f3eca528cc1541e256.tar.gz
fw_resp: remove deprecated function
Hinawa.FwResp.get_req_frame() has been deprecated since version 2.2. This commit removes it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r--src/fw_resp.c29
-rw-r--r--src/fw_resp.h2
-rw-r--r--src/hinawa.map1
-rwxr-xr-xtests/fw-resp1
4 files changed, 0 insertions, 33 deletions
diff --git a/src/fw_resp.c b/src/fw_resp.c
index a62065b..df060f3 100644
--- a/src/fw_resp.c
+++ b/src/fw_resp.c
@@ -344,35 +344,6 @@ void hinawa_fw_resp_release(HinawaFwResp *self)
}
/**
- * hinawa_fw_resp_get_req_frame:
- * @self: A [class@FwResp]
- * @frame: (array length=length)(out)(transfer none): a 8bit array for response frame.
- * @length: (out): The length of bytes for the frame.
- *
- * Retrieve byte frame to be requested.
- *
- * Since: 2.0
- * Deprecated: 2.2: handler for [signal@FwResp::requested2] signal can receive the frame in its
- * argument.
- */
-void hinawa_fw_resp_get_req_frame(HinawaFwResp *self, const guint8 **frame,
- gsize *length)
-{
- HinawaFwRespPrivate *priv;
-
- g_return_if_fail(HINAWA_IS_FW_RESP(self));
- g_return_if_fail(frame != NULL);
- g_return_if_fail(length != NULL);
-
- priv = hinawa_fw_resp_get_instance_private(self);
-
- if (frame && length && priv->req_length > 0) {
- *frame = (const guint8 *)priv->req_frame;
- *length = priv->req_length;
- }
-}
-
-/**
* hinawa_fw_resp_set_resp_frame:
* @self: A [class@FwResp]
* @frame: (element-type guint8)(array length=length): a 8bit array for response frame.
diff --git a/src/fw_resp.h b/src/fw_resp.h
index 7e196c2..5eed1f0 100644
--- a/src/fw_resp.h
+++ b/src/fw_resp.h
@@ -52,8 +52,6 @@ gboolean hinawa_fw_resp_reserve(HinawaFwResp *self, HinawaFwNode*node, guint64 a
GError **error);
void hinawa_fw_resp_release(HinawaFwResp *self);
-void hinawa_fw_resp_get_req_frame(HinawaFwResp *self, const guint8 **frame,
- gsize *length);
void hinawa_fw_resp_set_resp_frame(HinawaFwResp *self, guint8 *frame,
gsize length);
diff --git a/src/hinawa.map b/src/hinawa.map
index a59966a..eb0db3d 100644
--- a/src/hinawa.map
+++ b/src/hinawa.map
@@ -44,7 +44,6 @@ HINAWA_1_4_0 {
HINAWA_2_0_0 {
"hinawa_fw_fcp_transaction";
- "hinawa_fw_resp_get_req_frame";
"hinawa_fw_resp_set_resp_frame";
} HINAWA_1_4_0;
diff --git a/tests/fw-resp b/tests/fw-resp
index f35844a..5bcdc5b 100755
--- a/tests/fw-resp
+++ b/tests/fw-resp
@@ -17,7 +17,6 @@ props = (
)
methods = (
'new',
- 'get_req_frame',
'set_resp_frame',
'reserve',
'reserve_within_region',