|
@@ -31,6 +31,8 @@
|
|
#include <time.h>
|
|
#include <time.h>
|
|
#include "../../core/sr_module.h"
|
|
#include "../../core/sr_module.h"
|
|
#include "../../core/locking.h"
|
|
#include "../../core/locking.h"
|
|
|
|
+#include "../../core/str.h"
|
|
|
|
+#include "../../core/utils/sruid.h"
|
|
#include "../tm/tm_load.h"
|
|
#include "../tm/tm_load.h"
|
|
|
|
|
|
#define KA_INACTIVE_DST 1 /*!< inactive destination */
|
|
#define KA_INACTIVE_DST 1 /*!< inactive destination */
|
|
@@ -60,6 +62,7 @@ typedef struct _ka_dest
|
|
str uri;
|
|
str uri;
|
|
str owner; // name of destination "owner"
|
|
str owner; // name of destination "owner"
|
|
// (module asking to monitor this destination
|
|
// (module asking to monitor this destination
|
|
|
|
+ str uuid; // Universal id for this record
|
|
int flags;
|
|
int flags;
|
|
int state;
|
|
int state;
|
|
time_t last_checked, last_up, last_down;
|
|
time_t last_checked, last_up, last_down;
|
|
@@ -85,6 +88,7 @@ typedef struct _ka_destinations_list
|
|
|
|
|
|
extern ka_destinations_list_t *ka_destinations_list;
|
|
extern ka_destinations_list_t *ka_destinations_list;
|
|
extern int ka_counter_del;
|
|
extern int ka_counter_del;
|
|
|
|
+extern sruid_t ka_sruid;
|
|
|
|
|
|
ticks_t ka_check_timer(ticks_t ticks, struct timer_ln* tl, void* param);
|
|
ticks_t ka_check_timer(ticks_t ticks, struct timer_ln* tl, void* param);
|
|
|
|
|
|
@@ -96,6 +100,7 @@ int ka_str_copy(str *src, str *dest, char *prefix);
|
|
int free_destination(ka_dest_t *dest) ;
|
|
int free_destination(ka_dest_t *dest) ;
|
|
int ka_del_destination(str *uri, str *owner) ;
|
|
int ka_del_destination(str *uri, str *owner) ;
|
|
int ka_find_destination(str *uri, str *owner, ka_dest_t **target ,ka_dest_t **head);
|
|
int ka_find_destination(str *uri, str *owner, ka_dest_t **target ,ka_dest_t **head);
|
|
|
|
+int ka_find_destination_by_uuid(str uuid, ka_dest_t **target, ka_dest_t **head);
|
|
int ka_lock_destination_list();
|
|
int ka_lock_destination_list();
|
|
int ka_unlock_destination_list();
|
|
int ka_unlock_destination_list();
|
|
#endif
|
|
#endif
|