summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/bus-util.h')
-rw-r--r--src/shared/bus-util.h35
1 files changed, 21 insertions, 14 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h
index a310087d8..0cd3a2316 100644
--- a/src/shared/bus-util.h
+++ b/src/shared/bus-util.h
@@ -21,11 +21,15 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include "sd-event.h"
+#include <sys/types.h>
+#include <inttypes.h>
+#include <stdbool.h>
+
+// #include "sd-event.h"
#include "sd-bus.h"
#include "hashmap.h"
-#include "install.h"
-#include "time-util.h"
+// #include "install.h"
+// #include "time-util.h"
typedef enum BusTransport {
BUS_TRANSPORT_LOCAL,
@@ -50,7 +54,7 @@ int bus_message_map_all_properties(sd_bus_message *m, const struct bus_propertie
// UNNEEDED int bus_message_map_properties_changed(sd_bus_message *m, const struct bus_properties_map *map, void *userdata);
int bus_map_all_properties(sd_bus *bus, const char *destination, const char *path, const struct bus_properties_map *map, void *userdata);
-int bus_async_unregister_and_exit(sd_event *e, sd_bus *bus, const char *name);
+// UNNEEDED int bus_async_unregister_and_exit(sd_event *e, sd_bus *bus, const char *name);
typedef bool (*check_idle_t)(void *userdata);
@@ -58,14 +62,14 @@ typedef bool (*check_idle_t)(void *userdata);
int bus_name_has_owner(sd_bus *c, const char *name, sd_bus_error *error);
-int bus_check_peercred(sd_bus *c);
+// UNNEEDED int bus_check_peercred(sd_bus *c);
int bus_test_polkit(sd_bus_message *call, int capability, const char *action, const char **details, uid_t good_user, bool *_challenge, sd_bus_error *e);
int bus_verify_polkit_async(sd_bus_message *call, int capability, const char *action, const char **details, bool interactive, uid_t good_user, Hashmap **registry, sd_bus_error *error);
void bus_verify_polkit_async_registry_free(Hashmap *registry);
-int bus_open_system_systemd(sd_bus **_bus);
+// UNNEEDED int bus_open_system_systemd(sd_bus **_bus);
// UNNEEDED int bus_open_user_systemd(sd_bus **_bus);
int bus_open_transport(BusTransport transport, const char *host, bool user, sd_bus **bus);
@@ -117,8 +121,10 @@ assert_cc(sizeof(mode_t) == sizeof(uint32_t));
#define bus_property_get_mode ((sd_bus_property_get_t) NULL)
int bus_log_parse_error(int r);
-int bus_log_create_error(int r);
+// UNNEEDED int bus_log_create_error(int r);
+/// UNNEEDED by elogind
+#if 0
typedef struct UnitInfo {
const char *machine;
const char *id;
@@ -132,6 +138,7 @@ typedef struct UnitInfo {
const char *job_type;
const char *job_path;
} UnitInfo;
+#endif // 0
// UNNEEDED int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u);
@@ -183,20 +190,20 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(sd_bus_track*, sd_bus_track_unref);
// UNNEEDED int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignment);
-typedef struct BusWaitForJobs BusWaitForJobs;
+// UNNEEDED typedef struct BusWaitForJobs BusWaitForJobs;
// UNNEEDED int bus_wait_for_jobs_new(sd_bus *bus, BusWaitForJobs **ret);
-void bus_wait_for_jobs_free(BusWaitForJobs *d);
-int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path);
-int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet);
+// UNNEEDED void bus_wait_for_jobs_free(BusWaitForJobs *d);
+// UNNEEDED int bus_wait_for_jobs_add(BusWaitForJobs *d, const char *path);
+// UNNEEDED int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet);
// UNNEEDED int bus_wait_for_jobs_one(BusWaitForJobs *d, const char *path, bool quiet);
-DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);
+// UNNEEDED DEFINE_TRIVIAL_CLEANUP_FUNC(BusWaitForJobs*, bus_wait_for_jobs_free);
// UNNEEDED int bus_deserialize_and_dump_unit_file_changes(sd_bus_message *m, bool quiet, UnitFileChange **changes, unsigned *n_changes);
-int bus_path_encode_unique(sd_bus *b, const char *prefix, const char *sender_id, const char *external_id, char **ret_path);
-int bus_path_decode_unique(const char *path, const char *prefix, char **ret_sender, char **ret_external);
+// UNNEEDED int bus_path_encode_unique(sd_bus *b, const char *prefix, const char *sender_id, const char *external_id, char **ret_path);
+// UNNEEDED int bus_path_decode_unique(const char *path, const char *prefix, char **ret_sender, char **ret_external);
bool is_kdbus_wanted(void);
bool is_kdbus_available(void);