summaryrefslogtreecommitdiff
path: root/tests/wocky-pubsub-test-helpers.h
blob: 98824dd35944adbfa2cdf2b54bef80bb671d40ca (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-pubsub-service.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