/systemd-251/src/shared/ |
D | varlink.h | 29 typedef struct Varlink Varlink; typedef 52 typedef int (*VarlinkMethod)(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, void… 53 typedef int (*VarlinkReply)(Varlink *link, JsonVariant *parameters, const char *error_id, VarlinkRe… 54 typedef int (*VarlinkConnect)(VarlinkServer *server, Varlink *link, void *userdata); 55 typedef void (*VarlinkDisconnect)(VarlinkServer *server, Varlink *link, void *userdata); 57 int varlink_connect_address(Varlink **ret, const char *address); 58 int varlink_connect_fd(Varlink **ret, int fd); 60 Varlink* varlink_ref(Varlink *link); 61 Varlink* varlink_unref(Varlink *v); 63 int varlink_get_fd(Varlink *v); [all …]
|
D | varlink.c | 81 struct Varlink { struct 223 static inline const char *varlink_description(Varlink *v) { in varlink_description() 231 static void varlink_set_state(Varlink *v, VarlinkState state) { in varlink_set_state() 246 static int varlink_new(Varlink **ret) { in varlink_new() 247 Varlink *v; in varlink_new() 251 v = new(Varlink, 1); in varlink_new() 255 *v = (Varlink) { in varlink_new() 271 int varlink_connect_address(Varlink **ret, const char *address) { in varlink_connect_address() 272 _cleanup_(varlink_unrefp) Varlink *v = NULL; in varlink_connect_address() 316 int varlink_connect_fd(Varlink **ret, int fd) { in varlink_connect_fd() [all …]
|
D | userdb.c | 22 …E_DESTRUCTOR(link_hash_ops, void, trivial_hash_func, trivial_compare_func, Varlink, varlink_unref); 150 Varlink *link, in userdb_on_query_reply() 357 _cleanup_(varlink_unrefp) Varlink *vl = NULL; in userdb_connect()
|
/systemd-251/src/test/ |
D | test-varlink.c | 26 static int method_something(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, void … in method_something() 51 static int method_done(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, void *user… in method_done() 59 static int reply(Varlink *link, JsonVariant *parameters, const char *error_id, VarlinkReplyFlags fl… in reply() 72 static int on_connect(VarlinkServer *s, Varlink *link, void *userdata) { in on_connect() 84 static int overload_reply(Varlink *link, JsonVariant *parameters, const char *error_id, VarlinkRepl… in overload_reply() 97 _cleanup_(varlink_flush_close_unrefp) Varlink *c = NULL; in flood_test() 99 _cleanup_free_ Varlink **connections = NULL; in flood_test() 111 assert_se(connections = new0(Varlink*, OVERLOAD_CONNECTIONS)); in flood_test() 144 _cleanup_(varlink_flush_close_unrefp) Varlink *c = NULL; in thread() 190 _cleanup_(varlink_flush_close_unrefp) Varlink *c = NULL; in main()
|
/systemd-251/src/home/ |
D | homed-varlink.h | 6 int vl_method_get_user_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, voi… 7 int vl_method_get_group_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, vo… 8 int vl_method_get_memberships(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, voi…
|
D | homed-varlink.c | 21 static bool client_is_trusted(Varlink *link, Home *h) { in client_is_trusted() 73 int vl_method_get_user_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, voi… in vl_method_get_user_record() 189 int vl_method_get_group_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, vo… in vl_method_get_group_record() 259 int vl_method_get_memberships(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, voi… in vl_method_get_memberships()
|
/systemd-251/docs/ |
D | USER_GROUP_API.md | 2 title: User/Group Record Lookup API via Varlink 8 # User/Group Record Lookup API via Varlink 12 local system may be queried with a [Varlink](https://varlink.org/) API. This 29 subset of the Varlink functionality. 31 ## Why Varlink? 34 mechanisms described by [Varlink](https://varlink.org/). The choice of 35 preferring Varlink over D-Bus and other IPCs in this context was made for three 58 supposed to implement this API, and offer its interfaces on a Varlink 64 instead. (Alternatively a special Varlink service is available, 112 Note that these services currently implement a subset of Varlink only. For [all …]
|
D | USERDB_AND_DESKTOPS.md | 27 * [User/Group Record Lookup API via Varlink](USER_GROUP_API.md) 160 It is planned to extend the `userdb` Varlink API to support look-ups by partial
|
D | CONVERTING_TO_HOMED.md | 22 * [User/Group Record Lookup API via Varlink](USER_GROUP_API.md)
|
D | ENVIRONMENT.md | 420 `systemd-homed`'s D-Bus and Varlink service names/sockets. This is also
|
D | USER_RECORD.md | 41 user records. It also provides a unified [Varlink](https://varlink.org/) API 79 [User/Group Lookup API via Varlink](USER_GROUP_API.md). User/group records may
|
/systemd-251/src/userdb/ |
D | userwork.c | 72 static int build_user_json(Varlink *link, UserRecord *ur, JsonVariant **ret) { in build_user_json() 115 static int userdb_flags_from_service(Varlink *link, const char *service, UserDBFlags *ret) { in userdb_flags_from_service() 131 static int vl_method_get_user_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_get_user_record() 224 static int build_group_json(Varlink *link, GroupRecord *gr, JsonVariant **ret) { in build_group_json() 267 static int vl_method_get_group_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fl… in vl_method_get_group_record() 353 static int vl_method_get_memberships(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_get_memberships() 428 _cleanup_(varlink_close_unrefp) Varlink *vl = NULL; in process_connection()
|
/systemd-251/src/core/ |
D | core-varlink.c | 199 Varlink *link, in vl_method_subscribe_managed_oom_cgroups() 249 static int vl_method_get_user_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_get_user_record() 357 static int vl_method_get_group_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fl… in vl_method_get_group_record() 441 static int vl_method_get_memberships(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_get_memberships() 466 static void vl_disconnect(VarlinkServer *s, Varlink *link, void *userdata) { in vl_disconnect() 528 static int vl_reply(Varlink *link, JsonVariant *parameters, const char *error_id, VarlinkReplyFlags… in vl_reply() 554 _cleanup_(varlink_close_unrefp) Varlink *link = NULL; in manager_varlink_init_user()
|
D | manager.h | 456 Varlink *managed_oom_varlink;
|
/systemd-251/src/fuzz/ |
D | fuzz-varlink.c | 15 static int method_something(Varlink *v, JsonVariant *p, VarlinkMethodFlags flags, void *userdata) { in method_something() 20 static int reply_callback(Varlink *v, JsonVariant *p, const char *error_id, VarlinkReplyFlags flags… in reply_callback() 93 _cleanup_(varlink_flush_close_unrefp) Varlink *c = NULL; in LLVMFuzzerTestOneInput()
|
/systemd-251/src/nss-resolve/ |
D | nss-resolve.c | 66 static int connect_to_resolved(Varlink **ret) { in connect_to_resolved() 67 _cleanup_(varlink_unrefp) Varlink *link = NULL; in connect_to_resolved() 233 _cleanup_(varlink_unrefp) Varlink *link = NULL; in _nss_resolve_gethostbyname4_r() 386 _cleanup_(varlink_unrefp) Varlink *link = NULL; in _nss_resolve_gethostbyname3_r() 594 _cleanup_(varlink_unrefp) Varlink *link = NULL; in _nss_resolve_gethostbyaddr2_r()
|
/systemd-251/src/resolve/ |
D | resolved-varlink.c | 85 static void vl_on_disconnect(VarlinkServer *s, Varlink *link, void *userdata) { in vl_on_disconnect() 237 static int parse_as_address(Varlink *link, LookupParameters *p) { in parse_as_address() 276 static int vl_method_resolve_hostname(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fl… in vl_method_resolve_hostname() 455 static int vl_method_resolve_address(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_resolve_address()
|
D | resolved-dns-query.h | 93 Varlink *varlink_request;
|
/systemd-251/src/machine/ |
D | machined-varlink.c | 138 static int vl_method_get_user_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_get_user_record() 304 static int vl_method_get_group_record(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fl… in vl_method_get_group_record() 357 static int vl_method_get_memberships(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags fla… in vl_method_get_memberships()
|
/systemd-251/src/oom/ |
D | oomd-manager.h | 58 Varlink *varlink_client;
|
D | oomd-manager.c | 133 Varlink *link, in process_managed_oom_request() 151 Varlink *link, in process_managed_oom_reply() 318 _cleanup_(varlink_close_unrefp) Varlink *link = NULL; in acquire_managed_oom_connect()
|
/systemd-251/units/ |
D | systemd-journald-varlink@.socket | 11 Description=Journal Varlink Socket for Namespace %i
|
/systemd-251/src/journal/ |
D | journald-server.c | 1997 Varlink *link = userdata; in synchronize_second_half() 2023 static int vl_method_synchronize(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, … in vl_method_synchronize() 2065 static int vl_method_rotate(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags, void … in vl_method_rotate() 2080 static int vl_method_flush_to_var(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flags,… in vl_method_flush_to_var() 2097 static int vl_method_relinquish_var(Varlink *link, JsonVariant *parameters, VarlinkMethodFlags flag… in vl_method_relinquish_var() 2114 static int vl_connect(VarlinkServer *server, Varlink *link, void *userdata) { in vl_connect() 2126 static void vl_disconnect(VarlinkServer *server, Varlink *link, void *userdata) { in vl_disconnect()
|
D | journalctl.c | 2065 _cleanup_(varlink_flush_close_unrefp) Varlink *link = NULL; in simple_varlink_call()
|
/systemd-251/ |
D | NEWS | 2913 resolution: besides D-Bus and local DNS to 127.0.0.53 a Varlink 2915 modified to use this new interface instead of D-Bus. Using Varlink 2927 * Name lookups issued via systemd-resolved's D-Bus and Varlink
|