dbus: move unix socket declarations to common sysdeps.h

The function declaration can be moved to system-agnostic header and be
implemented on Windows in following commits.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-02-08 16:23:27 +04:00 committed by Simon McVittie
parent f8343fa397
commit 519dd8726e
2 changed files with 12 additions and 11 deletions

View file

@ -66,17 +66,6 @@ _dbus_write_two (int fd,
int start2,
int len2);
DBusSocket _dbus_connect_unix_socket (const char *path,
dbus_bool_t abstract,
DBusError *error);
DBusSocket _dbus_listen_unix_socket (const char *path,
dbus_bool_t abstract,
DBusError *error);
DBusSocket _dbus_connect_exec (const char *path,
char *const argv[],
DBusError *error);
int _dbus_listen_systemd_sockets (DBusSocket **fd,
DBusError *error);

View file

@ -561,6 +561,18 @@ typedef struct
dbus_bool_t _dbus_stat (const DBusString *filename,
DBusStat *statbuf,
DBusError *error);
DBusSocket _dbus_connect_unix_socket (const char *path,
dbus_bool_t abstract,
DBusError *error);
DBusSocket _dbus_listen_unix_socket (const char *path,
dbus_bool_t abstract,
DBusError *error);
DBusSocket _dbus_connect_exec (const char *path,
char *const argv[],
DBusError *error);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_socketpair (DBusSocket *fd1,
DBusSocket *fd2,