aboutsummaryrefslogtreecommitdiff
path: root/src/npassd
diff options
context:
space:
mode:
Diffstat (limited to 'src/npassd')
-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)
{