]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus: move unix socket declarations to common sysdeps.h
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 8 Feb 2022 12:23:27 +0000 (16:23 +0400)
committerSimon McVittie <smcv@collabora.com>
Fri, 15 Jul 2022 15:26:18 +0000 (16:26 +0100)
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>
dbus/dbus-sysdeps-unix.h
dbus/dbus-sysdeps.h

index f7d6966f934a1e1242f4a8f0296471e2d382ca7b..06614ecc6ac856f13f8963985b7c37f274f867b3 100644 (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);
 
index 887a0ce6d16d54722966514f001fa4f79094b827..1c6b76153723604dbaa9046f60eec8d5e223e95c 100644 (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,