loudmouth/lm-dummy.h
author Ryan Schmidt <git@ryandesign.com>
Fri, 09 Jul 2021 10:38:43 -0500
changeset 742 ad6ffcac88a4
parent 690 7ccf2113ec5f
permissions -rw-r--r--
Fix typo: GnuTSL -> GnuTLS committer: GitHub <noreply@github.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
516
4dd3aa6b83e5 Change the tab width to 4 steps in the emacs headers
Mikael Hallendal <micke@imendio.com>
parents: 515
diff changeset
     1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     2
/*
426
ab47db6da589 LmSimpleIO now implements the LmXmppWriter interface.
Mikael Hallendal <micke@imendio.com>
parents: 424
diff changeset
     3
 * Copyright (C) 2008 Imendio AB
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     4
 *
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     6
 * modify it under the terms of the GNU Lesser General Public License as
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     7
 * published by the Free Software Foundation; either version 2 of the
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     8
 * License, or (at your option) any later version.
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
     9
 *
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    13
 * Lesser General Public License for more details.
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    14
 *
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    15
 * You should have received a copy of the GNU Lesser General Public
690
7ccf2113ec5f Update the postal address of the FSF
Frank Zschockelt <lm@freakysoft.de>
parents: 607
diff changeset
    16
 * License along with this program; if not, see <https://www.gnu.org/licenses>
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    17
 */
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    18
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    19
#ifndef __LM_DUMMY_H__
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    20
#define __LM_DUMMY_H__
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    21
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    22
#include <glib-object.h>
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    23
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    24
G_BEGIN_DECLS
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    25
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    26
#define LM_TYPE_DUMMY            (lm_dummy_get_type ())
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    27
#define LM_DUMMY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), LM_TYPE_DUMMY, LmDummy))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    28
#define LM_DUMMY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), LM_TYPE_DUMMY, LmDummyClass))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    29
#define LM_IS_DUMMY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LM_TYPE_DUMMY))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    30
#define LM_IS_DUMMY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LM_TYPE_DUMMY))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    31
#define LM_DUMMY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), LM_TYPE_DUMMY, LmDummyClass))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    32
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    33
typedef struct LmDummy      LmDummy;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    34
typedef struct LmDummyClass LmDummyClass;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    35
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    36
struct LmDummy {
518
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    37
    GObject parent;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    38
};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    39
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    40
struct LmDummyClass {
518
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    41
    GObjectClass parent_class;
607
e2bd14357c9a Some style fixes
Frank Zschockelt <lm@freakysoft.de>
parents: 518
diff changeset
    42
518
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    43
    /* <vtable> */
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    44
    void  (*initialize)    (LmDummy     *dummy,
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    45
                            const char *username,
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    46
                            const char *server,
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    47
                            const char *password);
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    48
    void  (*begin)         (LmDummy     *dummy);
cdd6a0c5b439 Went over all of the files and made sure they all were indented the same way.
Mikael Hallendal <micke@imendio.com>
parents: 516
diff changeset
    49
    void  (*cancel)        (LmDummy     *dummy);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    50
};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    51
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    52
GType   lm_dummy_get_type  (void);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    53
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    54
G_END_DECLS
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    55
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    56
#endif /* __LM_DUMMY_H__ */
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    57