loudmouth/lm-dummy.c
author Mikael Hallendal <micke@imendio.com>
Wed, 08 Oct 2008 13:11:02 +0200
changeset 518 cdd6a0c5b439
parent 516 4dd3aa6b83e5
child 521 50294ce6587e
permissions -rw-r--r--
Went over all of the files and made sure they all were indented the same way. This means from now on use 4 space instead of tabs everywhere for indentation.
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));
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
    73
    
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
    74
    signals[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
    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,
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
    80
                      lm_marshal_VOID__INT,
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
    81
                      G_TYPE_NONE, 
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);
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
    83
    
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
{
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
    90
    LmDummyPriv *priv;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    91
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
    92
    priv = GET_PRIV (dummy);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    93
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    94
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    95
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    96
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    97
dummy_finalize (GObject *object)
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
    98
{
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
    99
    LmDummyPriv *priv;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   100
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
   101
    priv = GET_PRIV (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   102
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
    (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
   104
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   105
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   106
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   107
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
   108
                    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
   109
                    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
   110
                    GParamSpec *pspec)
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   111
{
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
   112
    LmDummyPriv *priv;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   113
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
   114
    priv = GET_PRIV (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   115
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
   116
    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
   117
    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
   118
        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
   119
        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
   120
    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
   121
        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
   122
        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
   123
    };
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   124
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   125
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   126
static void
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   127
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
   128
                    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
   129
                    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
   130
                    GParamSpec   *pspec)
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   131
{
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
   132
    LmDummyPriv *priv;
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   133
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
   134
    priv = GET_PRIV (object);
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   135
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
   136
    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
   137
    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
   138
        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
   139
        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
   140
    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
   141
        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
   142
        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
   143
    };
424
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   144
}
0603668c7ddc Added lm-marshal.list and lm-marshal-main.c
Mikael Hallendal <micke@imendio.com>
parents:
diff changeset
   145