loudmouth/lm-dummy.c
author Mikael Berthe <mikael@lilotux.net>
Sun, 04 Dec 2011 13:57:00 +0100
changeset 624 a94013a4555d
parent 607 e2bd14357c9a
child 690 7ccf2113ec5f
permissions -rw-r--r--
Fix some gcc warnings
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
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    16
 * License along with this program; if not, write to the
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    18
 * Boston, MA 02111-1307, USA.
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    19
 */
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    20
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    21
#include <config.h>
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    22
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    23
#include "lm-marshal.h"
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    24
#include "lm-dummy.h"
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 GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), LM_TYPE_DUMMY, LmDummyPriv))
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    27
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    28
typedef struct LmDummyPriv LmDummyPriv;
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    29
struct LmDummyPriv {
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
    30
    gint my_prop;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    31
};
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
static void     dummy_finalize            (GObject           *object);
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    34
static void     dummy_get_property        (GObject           *object,
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
    35
                                           guint              param_id,
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
    36
                                           GValue            *value,
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
                                           GParamSpec        *pspec);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    38
static void     dummy_set_property        (GObject           *object,
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
    39
                                           guint              param_id,
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
    40
                                           const GValue      *value,
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
                                           GParamSpec        *pspec);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    42
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    43
G_DEFINE_TYPE (LmDummy, lm_dummy, G_TYPE_OBJECT)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    44
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    45
enum {
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
    46
    PROP_0,
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
    PROP_MY_PROP
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    48
};
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    49
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    50
enum {
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
    51
    SIGNAL_NAME,
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
    52
    LAST_SIGNAL
424
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
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    55
static guint signals[LAST_SIGNAL] = { 0 };
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    56
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    57
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    58
lm_dummy_class_init (LmDummyClass *class)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    59
{
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
    60
    GObjectClass *object_class = G_OBJECT_CLASS (class);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    61
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
    62
    object_class->finalize     = dummy_finalize;
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
    63
    object_class->get_property = dummy_get_property;
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
    64
    object_class->set_property = dummy_set_property;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    65
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
    66
    g_object_class_install_property (object_class,
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
    67
                                     PROP_MY_PROP,
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
    68
                                     g_param_spec_string ("my-prop",
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
    69
                                                          "My Prop",
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
    70
                                                          "My Property",
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
    71
                                                          NULL,
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
    72
                                                          G_PARAM_READWRITE));
607
e2bd14357c9a Some style fixes
Frank Zschockelt <lm@freakysoft.de>
parents: 521
diff changeset
    73
e2bd14357c9a Some style fixes
Frank Zschockelt <lm@freakysoft.de>
parents: 521
diff changeset
    74
    signals[SIGNAL_NAME] =
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
    75
        g_signal_new ("signal-name",
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
    76
                      G_OBJECT_CLASS_TYPE (object_class),
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
    77
                      G_SIGNAL_RUN_LAST,
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
    78
                      0,
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
    79
                      NULL, NULL,
521
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents: 518
diff changeset
    80
                      _lm_marshal_VOID__INT,
607
e2bd14357c9a Some style fixes
Frank Zschockelt <lm@freakysoft.de>
parents: 521
diff changeset
    81
                      G_TYPE_NONE,
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
    82
                      1, G_TYPE_INT);
607
e2bd14357c9a Some style fixes
Frank Zschockelt <lm@freakysoft.de>
parents: 521
diff changeset
    83
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
    84
    g_type_class_add_private (object_class, sizeof (LmDummyPriv));
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    85
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    86
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    87
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    88
lm_dummy_init (LmDummy *dummy)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    89
{
624
a94013a4555d Fix some gcc warnings
Mikael Berthe <mikael@lilotux.net>
parents: 607
diff changeset
    90
    (void) GET_PRIV (dummy);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    91
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    92
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    93
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    94
dummy_finalize (GObject *object)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    95
{
624
a94013a4555d Fix some gcc warnings
Mikael Berthe <mikael@lilotux.net>
parents: 607
diff changeset
    96
    (void) GET_PRIV (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    97
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
    98
    (G_OBJECT_CLASS (lm_dummy_parent_class)->finalize) (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    99
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   100
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   101
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   102
dummy_get_property (GObject    *object,
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
   103
                    guint       param_id,
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
   104
                    GValue     *value,
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
   105
                    GParamSpec *pspec)
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   106
{
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
   107
    LmDummyPriv *priv;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   108
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
   109
    priv = GET_PRIV (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   110
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
   111
    switch (param_id) {
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
   112
    case PROP_MY_PROP:
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
   113
        g_value_set_int (value, priv->my_prop);
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
   114
        break;
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
   115
    default:
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
   116
        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
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
   117
        break;
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
   118
    };
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   119
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   120
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   121
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   122
dummy_set_property (GObject      *object,
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
   123
                    guint         param_id,
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
   124
                    const GValue *value,
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
   125
                    GParamSpec   *pspec)
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   126
{
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
   127
    LmDummyPriv *priv;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   128
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
   129
    priv = GET_PRIV (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   130
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
   131
    switch (param_id) {
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
   132
    case PROP_MY_PROP:
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
   133
        priv->my_prop = g_value_get_int (value);
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
   134
        break;
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
   135
    default:
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
   136
        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
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
   137
        break;
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
   138
    };
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   139
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   140