#define SI_FLAG_FORWARD (INT32_C(1) << 30)
#define SI_FLAG_POSITIVE (INT32_C(1) << 29)
+DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(
+ event_source_hash_ops,
+ sd_event_source,
+ (void (*)(const sd_event_source*, struct siphash*)) trivial_hash_func,
+ (int (*)(const sd_event_source*, const sd_event_source*)) trivial_compare_func,
+ sd_event_source_disable_unref);
+
int event_reset_time(
sd_event *e,
sd_event_source **s,
#include "sd-event.h"
+#include "hash-funcs.h"
#include "pidref.h"
+extern const struct hash_ops event_source_hash_ops;
+
int event_reset_time(
sd_event *e,
sd_event_source **s,
#include "build-path.h"
#include "common-signal.h"
#include "env-util.h"
+#include "event-util.h"
#include "fd-util.h"
#include "fs-util.h"
#include "mkdir.h"
return 0;
}
-DEFINE_PRIVATE_HASH_OPS_WITH_KEY_DESTRUCTOR(
- event_source_hash_ops,
- sd_event_source,
- (void (*)(const sd_event_source*, struct siphash*)) trivial_hash_func,
- (int (*)(const sd_event_source*, const sd_event_source*)) trivial_compare_func,
- sd_event_source_disable_unref);
-
int manager_new(Manager **ret) {
_cleanup_(manager_freep) Manager *m = NULL;
int r;
#include "build-path.h"
#include "common-signal.h"
#include "env-util.h"
+#include "event-util.h"
#include "fd-util.h"
#include "fs-util.h"
#include "mkdir.h"
return 0;
}
-DEFINE_PRIVATE_HASH_OPS_WITH_KEY_DESTRUCTOR(
- event_source_hash_ops,
- sd_event_source,
- (void (*)(const sd_event_source*, struct siphash*)) trivial_hash_func,
- (int (*)(const sd_event_source*, const sd_event_source*)) trivial_compare_func,
- sd_event_source_disable_unref);
-
int manager_new(Manager **ret) {
_cleanup_(manager_freep) Manager *m = NULL;
int r;
#include "build-path.h"
#include "common-signal.h"
#include "env-util.h"
+#include "event-util.h"
#include "fd-util.h"
#include "fs-util.h"
#include "mkdir.h"
return 0;
}
-DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(
- event_source_hash_ops,
- sd_event_source,
- (void (*)(const sd_event_source*, struct siphash*)) trivial_hash_func,
- (int (*)(const sd_event_source*, const sd_event_source*)) trivial_compare_func,
- sd_event_source_disable_unref);
-
int manager_new(Manager **ret) {
_cleanup_(manager_freep) Manager *m = NULL;
int r;