1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2018 Red Hat
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SSS_IFACE_ASYNC_H_
#define _SSS_IFACE_ASYNC_H_
#include <tevent.h>
#include <time.h>
#include "sss_iface/sbus_sss_server.h"
#include "sss_iface/sbus_sss_client_async.h"
#include "sss_iface/sss_iface.h"
/**
* Check socket and connect to private sbus server.
*/
errno_t
sss_iface_connect_address(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
const char *conn_name,
const char *address,
time_t *last_request_time,
struct sbus_connection **_conn);
enum mt_svc_type {
MT_SVC_SERVICE,
MT_SVC_PROVIDER
};
/**
* Connect to monitor sbus server and register standard service interface
* on SSS_BUS_PATH object path.
*/
errno_t
sss_monitor_service_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
const char *conn_name,
const char *svc_name,
uint16_t svc_version,
uint16_t svc_type,
time_t *last_request_time,
struct sbus_connection **_conn);
#endif /* _SSS_IFACE_ASYNC_H_ */
|