blob: 8ba455cd320682de09a2195b873d9faefb7c619d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef WOCKY_PUBSUB_TEST_HELPERS_H
#define WOCKY_PUBSUB_TEST_HELPERS_H
#include <glib.h>
#include <wocky/wocky.h>
typedef struct {
const gchar *node;
const gchar *jid;
const gchar *subscription;
WockyPubsubSubscriptionState state;
const gchar *subid;
} CannedSubscriptions;
void test_pubsub_add_subscription_nodes (
WockyNode *subscriptions_node,
CannedSubscriptions *subs,
gboolean include_node);
void test_pubsub_check_and_free_subscriptions (
GList *subscriptions,
const CannedSubscriptions *expected_subs);
#endif
|