aboutsummaryrefslogtreecommitdiff
path: root/src/npassd/service.c
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-04-22 22:51:08 +0530
committersinanmohd <sinan@sinanmohd.com>2024-04-22 22:51:08 +0530
commit8ce5f52567f486dbad1eb3f91383f62395df7581 (patch)
treeb83c4182280695f06f49753204af41f49bdc398b /src/npassd/service.c
parentb33130cd384e531cb6dfbeefbb94f8f20bc967c6 (diff)
npassd/service/SearchItems: init stub
Diffstat (limited to 'src/npassd/service.c')
-rw-r--r--src/npassd/service.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/npassd/service.c b/src/npassd/service.c
index c93073a..b294cf0 100644
--- a/src/npassd/service.c
+++ b/src/npassd/service.c
@@ -10,14 +10,25 @@
static int handle_open_session(sd_bus_message *msg, void *data,
sd_bus_error *ret_error);
+static int handle_search_items(sd_bus_message *msg, void *data,
+ sd_bus_error *ret_error);
static const sd_bus_vtable service_vtable[] = {
SD_BUS_VTABLE_START(0),
SD_BUS_METHOD("OpenSession", "sv", "vo", handle_open_session,
SD_BUS_VTABLE_UNPRIVILEGED),
+ SD_BUS_METHOD("SearchItems", "a{ss}", "aoao", handle_search_items,
+ SD_BUS_VTABLE_UNPRIVILEGED),
SD_BUS_VTABLE_END,
};
+static int handle_search_items(__attribute__((unused)) sd_bus_message *msg,
+ __attribute__((unused)) void *data,
+ __attribute__((unused)) sd_bus_error *ret_error)
+{
+ return sd_bus_reply_method_return(msg, "aoao", 0, 0);
+}
+
static int handle_open_session(sd_bus_message *msg, void *data,
sd_bus_error *ret_error)
{