kdbus: the driver, original and non-working
[platform/kernel/linux-rpi.git] / ipc / kdbus / match.h
1 /*
2  * Copyright (C) 2013-2015 Kay Sievers
3  * Copyright (C) 2013-2015 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
4  * Copyright (C) 2013-2015 Daniel Mack <daniel@zonque.org>
5  * Copyright (C) 2013-2015 David Herrmann <dh.herrmann@gmail.com>
6  * Copyright (C) 2013-2015 Linux Foundation
7  * Copyright (C) 2014-2015 Djalal Harouni <tixxdz@opendz.org>
8  *
9  * kdbus is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU Lesser General Public License as published by the
11  * Free Software Foundation; either version 2.1 of the License, or (at
12  * your option) any later version.
13  */
14
15 #ifndef __KDBUS_MATCH_H
16 #define __KDBUS_MATCH_H
17
18 struct kdbus_conn;
19 struct kdbus_match_db;
20 struct kdbus_staging;
21
22 struct kdbus_match_db *kdbus_match_db_new(void);
23 void kdbus_match_db_free(struct kdbus_match_db *db);
24 int kdbus_match_db_add(struct kdbus_conn *conn,
25                        struct kdbus_cmd_match *cmd);
26 int kdbus_match_db_remove(struct kdbus_conn *conn,
27                           struct kdbus_cmd_match *cmd);
28 bool kdbus_match_db_match_msg(struct kdbus_match_db *db,
29                               struct kdbus_conn *conn_src,
30                               const struct kdbus_staging *staging);
31
32 int kdbus_cmd_match_add(struct kdbus_conn *conn, void __user *argp);
33 int kdbus_cmd_match_remove(struct kdbus_conn *conn, void __user *argp);
34
35 #endif