annotate Plugins/Visualization/paranormal/pn/pntestactuator.c @ 1717:837983bac90f trunk

[svn] Fixed a lot of warnings that only showed up on *BSD.
author js
date Sat, 16 Sep 2006 16:26:54 -0700
parents 0c5fdcf3f947
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1507
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
1 /* Paranormal - A highly customizable audio visualization library
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
2 * Copyright (C) 2001 Jamie Gennis <jgennis@mindspring.com>
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
3 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
4 * This library is free software; you can redistribute it and/or
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
5 * modify it under the terms of the GNU Library General Public
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
7 * version 2 of the License, or (at your option) any later version.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
8 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
9 * This library is distributed in the hope that it will be useful,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
12 * Library General Public License for more details.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
13 *
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU Library General Public
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
15 * License along with this library; if not, write to the Free
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
17 */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
18
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
19 #include <glib.h>
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
20 #include "pntestactuator.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
21 #include "pnbooleanoption.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
22 #include "pnintegeroption.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
23 #include "pnfloatoption.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
24 #include "pnstringoption.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
25 #include "pnerror.h"
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
26
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
27 static void pn_test_actuator_class_init (PnTestActuatorClass *class);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
28 static void pn_test_actuator_init (PnTestActuator *test_actuator,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
29 PnTestActuatorClass *class);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
30 /* PnActuator methods */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
31 static void pn_test_actuator_prepare (PnTestActuator *test_actuator,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
32 PnImage *image);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
33 static void pn_test_actuator_execute (PnTestActuator *test_actuator,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
34 PnImage *image,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
35 PnAudioData *audio_data);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
36
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
37 static PnActuatorClass *parent_class = NULL;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
38
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
39 GType
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
40 pn_test_actuator_get_type (void)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
41 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
42 static GType test_actuator_type = 0;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
43
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
44 if (! test_actuator_type)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
45 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
46 static const GTypeInfo test_actuator_info =
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
47 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
48 sizeof (PnTestActuatorClass),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
49 NULL, /* base_init */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
50 NULL, /* base_finalize */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
51 (GClassInitFunc) pn_test_actuator_class_init,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
52 NULL, /* class_finalize */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
53 NULL, /* class_data */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
54 sizeof (PnTestActuator),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
55 0, /* n_preallocs */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
56 (GInstanceInitFunc) pn_test_actuator_init
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
57 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
58
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
59 /* FIXME: should this be dynamic? */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
60 test_actuator_type = g_type_register_static (PN_TYPE_ACTUATOR,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
61 "PnTestActuator",
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
62 &test_actuator_info,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
63 0);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
64 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
65 return test_actuator_type;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
66 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
67
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
68 static void
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
69 pn_test_actuator_class_init (PnTestActuatorClass *class)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
70 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
71 PnObjectClass *object_class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
72 PnUserObjectClass *user_object_class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
73 PnActuatorClass *actuator_class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
74
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
75 parent_class = g_type_class_peek_parent (class);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
76
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
77 object_class = (PnObjectClass *) class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
78 user_object_class = (PnUserObjectClass *) class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
79 actuator_class = (PnActuatorClass *) class;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
80
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
81 /* PnActuator methods */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
82 actuator_class->prepare = (PnActuatorPrepFunc) pn_test_actuator_prepare;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
83 actuator_class->execute = (PnActuatorExecFunc) pn_test_actuator_execute;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
84 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
85
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
86 static void
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
87 pn_test_actuator_init (PnTestActuator *test_actuator, PnTestActuatorClass *class)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
88 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
89 PnBooleanOption *test_bool_opt;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
90 PnIntegerOption *test_int_opt;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
91 PnFloatOption *test_float_opt;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
92 PnStringOption *test_str_opt;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
93
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
94 /* Set up the name and description */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
95 pn_user_object_set_name (PN_USER_OBJECT (test_actuator), "Test.Test");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
96 pn_user_object_set_description (PN_USER_OBJECT (test_actuator),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
97 "An actuator to test the functionality of the PnActuator base class");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
98
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
99 /* Set up the options */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
100 test_bool_opt = pn_boolean_option_new ("test_boolean_option", "A boolean test option");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
101 pn_boolean_option_set_value (test_bool_opt, TRUE);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
102
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
103 test_int_opt = pn_integer_option_new ("test_integer_option", "An integer test option");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
104 pn_integer_option_set_value (test_int_opt, 32);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
105 pn_integer_option_set_min (test_int_opt, 16);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
106 pn_integer_option_set_max (test_int_opt, 64);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
107
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
108 test_float_opt = pn_float_option_new ("test_float_option", "A float test option");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
109 pn_float_option_set_value (test_float_opt, 0.7);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
110 pn_float_option_set_min (test_float_opt, 0.0);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
111 pn_float_option_set_max (test_float_opt, 1.0);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
112
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
113 test_str_opt = pn_string_option_new ("test_string_option", "A string test option");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
114
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
115 pn_actuator_add_option (PN_ACTUATOR (test_actuator), PN_OPTION (test_bool_opt));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
116 pn_actuator_add_option (PN_ACTUATOR (test_actuator), PN_OPTION (test_int_opt));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
117 pn_actuator_add_option (PN_ACTUATOR (test_actuator), PN_OPTION (test_float_opt));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
118 pn_actuator_add_option (PN_ACTUATOR (test_actuator), PN_OPTION (test_str_opt));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
119 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
120
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
121 static void
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
122 pn_test_actuator_prepare (PnTestActuator *test_actuator, PnImage *image)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
123 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
124 g_return_if_fail (test_actuator != NULL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
125 g_return_if_fail (PN_IS_TEST_ACTUATOR (test_actuator));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
126 g_return_if_fail (image != NULL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
127 g_return_if_fail (PN_IS_IMAGE (image));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
128
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
129 pn_error ("pn_test_actuator_prepare called");
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
130 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
131
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
132 static void
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
133 pn_test_actuator_execute (PnTestActuator *test_actuator, PnImage *image,
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
134 PnAudioData *audio_data)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
135 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
136 PnOption *test_bool_opt, *test_int_opt, *test_float_opt, *test_str_opt;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
137 PnColor color = { 0, 0, 0, 0 };
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
138 guint i;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
139
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
140 g_return_if_fail (test_actuator != NULL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
141 g_return_if_fail (PN_IS_TEST_ACTUATOR (test_actuator));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
142 g_return_if_fail (image != NULL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
143 g_return_if_fail (PN_IS_IMAGE (image));
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
144 g_return_if_fail (audio_data != NULL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
145 /* g_return_if_fail (PN_IS_AUDIO_DATA (audio_data)); */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
146
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
147 test_bool_opt = pn_actuator_get_option_by_index (PN_ACTUATOR (test_actuator),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
148 PN_TEST_ACTUATOR_OPT_TEST_BOOL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
149 test_int_opt = pn_actuator_get_option_by_index (PN_ACTUATOR (test_actuator),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
150 PN_TEST_ACTUATOR_OPT_TEST_INT);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
151 test_float_opt = pn_actuator_get_option_by_index (PN_ACTUATOR (test_actuator),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
152 PN_TEST_ACTUATOR_OPT_TEST_FLOAT);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
153 test_str_opt = pn_actuator_get_option_by_index (PN_ACTUATOR (test_actuator),
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
154 PN_TEST_ACTUATOR_OPT_TEST_STR);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
155
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
156 /* printf ("pn_test_actuator_execute: %s = %d\n", */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
157 /* pn_user_object_get_name (PN_USER_OBJECT (test_bool_opt)), */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
158 /* pn_boolean_option_get_value (PN_BOOLEAN_OPTION (test_bool_opt))); */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
159 /* printf ("pn_test_actuator_execute: %s = %d\n", */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
160 /* pn_user_object_get_name (PN_USER_OBJECT (test_int_opt)), */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
161 /* pn_integer_option_get_value (PN_INTEGER_OPTION (test_int_opt))); */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
162 /* printf ("pn_test_actuator_execute: %s = %f\n", */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
163 /* pn_user_object_get_name (PN_USER_OBJECT (test_float_opt)), */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
164 /* pn_float_option_get_value (PN_FLOAT_OPTION (test_float_opt))); */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
165 /* printf ("pn_test_actuator_execute: %s = \"%s\"\n", */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
166 /* pn_user_object_get_name (PN_USER_OBJECT (test_str_opt)), */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
167 /* pn_string_option_get_value (PN_STRING_OPTION (test_str_opt))); */
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
168
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
169 for (i=0; i<pn_image_get_width (image) * 64; i++)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
170 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
171 color.red = i % 256;
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
172 pn_image_render_pixel_by_offset (image, i, color);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
173 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
174 }
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
175
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
176 PnTestActuator*
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
177 pn_test_actuator_new (void)
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
178 {
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
179 return (PnTestActuator *) g_object_new (PN_TYPE_TEST_ACTUATOR, NULL);
0c5fdcf3f947 [svn] - incomplete stuff
nenolod
parents:
diff changeset
180 }