63 #include <amxc/amxc_variant.h>
64 #include <amxc/amxc_htable.h>
65 #include <amxc/amxc_lqueue.h>
67 #include <amxp/amxp_signal.h>
68 #include <amxp/amxp_slot.h>
70 #include <amxd/amxd_dm.h>
72 #include <amxo/amxo.h>
76 #include <amxc/amxc_macros.h>
85 assert_int_equal(amxb_connect(&
bus_ctx,
"dummy:/tmp/dummy.sock"), 0);
258 "A.A_template.[param_A == 1337].",
259 "B.B_template.[param_B == 42].",
265 assert_string_equal(ctx->
a,
"A.A_template.1.");
266 assert_string_equal(ctx->
b,
"B.B_template.1.");
271 "A.A_template.[nonexistent == 1337].",
272 "B.B_template.[param_B == 42].",
320 "A.A_template.[param_A == 1337].",
321 "B.B_template.[param_B == 42]."), 0);
@ amxs_status_object_not_found
int test_unregister_dummy_be(void)
int test_load_dummy_remote(const char *odl)
int test_register_dummy_be(void)
amxs_status_t amxs_sync_object_new(amxs_sync_object_t **object, const char *object_a, const char *object_b, int attributes, amxs_translation_cb_t translation_cb, amxs_action_cb_t action_cb, void *priv)
Synchronization object constructor function.
amxs_status_t amxs_sync_object_add_new_param(amxs_sync_object_t *object, const char *param_a, const char *param_b, int attributes, amxs_translation_cb_t translation_cb, amxs_action_cb_t action_cb, void *priv)
Creates and adds a synchronization parameter to a synchronization object.
#define AMXS_SYNC_DEFAULT
Default synchronization attributes.
#define AMXS_SYNC_INIT_B
Take the initial values from object B.
#define AMXS_SYNC_ONLY_B_TO_A
Only synchronize from object B to object A.
#define AMXS_SYNC_ONLY_A_TO_B
Only synchronize from object A to object B.
amxs_status_t amxs_sync_ctx_new(amxs_sync_ctx_t **ctx, const char *object_a, const char *object_b, int attributes)
Synchronization context constructor function.
amxs_status_t amxs_sync_ctx_copy(amxs_sync_ctx_t **dest, amxs_sync_ctx_t *src, void *priv)
Copies an existing synchronization context to a new synchronization context.
amxs_status_t amxs_sync_ctx_add_new_param(amxs_sync_ctx_t *ctx, const char *param_a, const char *param_b, int attributes, amxs_translation_cb_t translation_cb, amxs_action_cb_t action_cb, void *priv)
Creates and adds a synchronization parameter to a synchronization context.
amxs_status_t amxs_sync_ctx_start_sync(amxs_sync_ctx_t *ctx)
Starts the object synchronization.
void amxs_sync_ctx_delete(amxs_sync_ctx_t **ctx)
Synchronization context destructor function.
static bool amxs_sync_ctx_is_started(const amxs_sync_ctx_t *const ctx)
Checks is the synchronization context is running.
amxs_status_t amxs_sync_ctx_add_object(amxs_sync_ctx_t *ctx, amxs_sync_object_t *object)
Adds a synchronization object to a synchronization context.
void amxs_sync_ctx_stop_sync(amxs_sync_ctx_t *ctx)
Stops the object synchronization.
amxs_status_t amxs_sync_ctx_set_paths(amxs_sync_ctx_t *const ctx, const char *object_a, const char *object_b)
Updates the object paths of the synchronization context.
amxc_llist_t subscriptions
void test_amxs_sync_stop_args(UNUSED void **state)
void test_amxs_sync_start_args(UNUSED void **state)
void test_amxs_sync_start_instance_object_search_path(UNUSED void **state)
void test_amxs_sync_start_multiple_objects(UNUSED void **state)
int test_amxs_sync_teardown(UNUSED void **state)
void test_amxs_sync_start_param(UNUSED void **state)
int test_amxs_sync_setup(UNUSED void **state)
static amxb_bus_ctx_t * bus_ctx
void test_amxs_sync_start_object(UNUSED void **state)
void test_amxs_sync_start_template_object(UNUSED void **state)
void test_amxs_sync_start_copied(UNUSED void **state)
void test_amxs_sync_start_copied_change_paths(UNUSED void **state)