summaryrefslogtreecommitdiff
path: root/wocky/wocky-sasl-plain.h
blob: 9546671e28662e1d2523d43af5aa158ea657c57d (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#if !defined (WOCKY_H_INSIDE) && !defined (WOCKY_COMPILATION)
# error "Only <wocky/wocky.h> can be included directly."
#endif

#ifndef _WOCKY_SASL_PLAIN_H
#define _WOCKY_SASL_PLAIN_H

#include <glib-object.h>

#include "wocky-auth-handler.h"

G_BEGIN_DECLS

#define WOCKY_TYPE_SASL_PLAIN wocky_sasl_plain_get_type()

#define WOCKY_SASL_PLAIN(obj) \
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), WOCKY_TYPE_SASL_PLAIN, WockySaslPlain))

#define WOCKY_SASL_PLAIN_CLASS(klass) \
    (G_TYPE_CHECK_CLASS_CAST ((klass), WOCKY_TYPE_SASL_PLAIN, \
        WockySaslPlainClass))

#define WOCKY_IS_SASL_PLAIN(obj) \
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WOCKY_TYPE_SASL_PLAIN))

#define WOCKY_IS_SASL_PLAIN_CLASS(klass) \
    (G_TYPE_CHECK_CLASS_TYPE ((klass), WOCKY_TYPE_SASL_PLAIN))

#define WOCKY_SASL_PLAIN_GET_CLASS(obj) \
    (G_TYPE_INSTANCE_GET_CLASS ((obj), WOCKY_TYPE_SASL_PLAIN, \
        WockySaslPlainClass))

typedef struct _WockySaslPlainPrivate WockySaslPlainPrivate;

typedef struct
{
  GObject parent;
  WockySaslPlainPrivate *priv;
} WockySaslPlain;

typedef struct
{
  GObjectClass parent_class;
} WockySaslPlainClass;

GType
wocky_sasl_plain_get_type (void);

WockySaslPlain *wocky_sasl_plain_new (
    const gchar *username, const gchar *password);

G_END_DECLS

#endif /* defined _WOCKY_SASL_PLAIN_H */