return VINE_DATA_PATH_ERROR_NONE;
}
+static int __mock_data_path_plugin_get_local_addr(vine_dp_plugin_h handle,
+ int *addr_family, char local_ip[], int *port)
+{
+ if (!handle || !addr_family || !local_ip || !port)
+ return VINE_DATA_PATH_ERROR_INVALID_PARAMETER;
+
+ return VINE_DATA_PATH_ERROR_NONE;
+}
+
+static int __mock_data_path_plugin_set_token(vine_dp_plugin_h handle, const char *token)
+{
+ if (!handle || !token)
+ return VINE_DATA_PATH_ERROR_INVALID_PARAMETER;
+
+ return VINE_DATA_PATH_ERROR_NONE;
+}
+
+static int __mock_data_path_plugin_get_token(vine_dp_plugin_h handle, char **token)
+{
+ if (!handle || !token)
+ return VINE_DATA_PATH_ERROR_INVALID_PARAMETER;
+
+ return VINE_DATA_PATH_ERROR_NONE;
+}
+
+static int __mock_data_path_plugin_set_host_name(vine_dp_plugin_h handle, const char *name)
+{
+ if (!handle || !name)
+ return VINE_DATA_PATH_ERROR_INVALID_PARAMETER;
+
+ return VINE_DATA_PATH_ERROR_NONE;
+}
+
static void __mock_data_path_plugin_process_event(int fd, int events)
{
return;
fn->read = __mock_data_path_plugin_read;
fn->write = __mock_data_path_plugin_write;
fn->close = __mock_data_path_plugin_close;
+
+ fn->get_local_address_info = __mock_data_path_plugin_get_local_addr;
+
+ fn->set_token = __mock_data_path_plugin_set_token;
+ fn->get_token = __mock_data_path_plugin_get_token;
+ fn->set_host_name = __mock_data_path_plugin_set_host_name;
}