summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2015-01-15 14:49:25 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-17 15:59:49 +0100
commit4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cb (patch)
treef171f9ca17bcdd1196e555ac31a27adec1fb17eb /src/tests/sbus_codegen_tests.c
parentbeeef7f627a5ed9264de25ee4c76eb9620c1c984 (diff)
downloadsssd-4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cb.tar.gz
sssd-4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cb.tar.xz
sssd-4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cb.zip
sbus codegen: do not prefix getters with iface name
Prefixing getters with C name of the interface is just redundant since it is the same as the name of the structure that contains those fields. The following structure: struct test_pilot { $type test_pilot_get_name; } changes to: struct test_pilot { $type get_name; } Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/sbus_codegen_tests.c')
-rw-r--r--src/tests/sbus_codegen_tests.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c
index dccb5e314..e0b4b1d1a 100644
--- a/src/tests/sbus_codegen_tests.c
+++ b/src/tests/sbus_codegen_tests.c
@@ -543,31 +543,31 @@ struct test_pilot pilot_iface = {
{ &test_pilot_meta, 0 },
.Eject = eject_handler,
- .test_pilot_get_FullName = pilot_get_full_name_handler,
- .test_pilot_get_byte = pilot_get_byte_handler,
- .test_pilot_get_boolean = pilot_get_boolean_handler,
- .test_pilot_get_int16 = pilot_get_int16_handler,
- .test_pilot_get_uint16 = pilot_get_uint16_handler,
- .test_pilot_get_int32 = pilot_get_int32_handler,
- .test_pilot_get_uint32 = pilot_get_uint32_handler,
- .test_pilot_get_int64 = pilot_get_int64_handler,
- .test_pilot_get_uint64 = pilot_get_uint64_handler,
- .test_pilot_get_double = pilot_get_double_handler,
- .test_pilot_get_string = pilot_get_string_handler,
- .test_pilot_get_object_path = pilot_get_objpath_handler,
- .test_pilot_get_null_string = pilot_get_null_string_handler,
- .test_pilot_get_null_path = pilot_get_null_path_handler,
-
- .test_pilot_get_byte_array = pilot_get_byte_array_handler,
- .test_pilot_get_int16_array = pilot_get_int16_array_handler,
- .test_pilot_get_uint16_array = pilot_get_uint16_array_handler,
- .test_pilot_get_int32_array = pilot_get_int32_array_handler,
- .test_pilot_get_uint32_array = pilot_get_uint32_array_handler,
- .test_pilot_get_int64_array = pilot_get_int64_array_handler,
- .test_pilot_get_uint64_array = pilot_get_uint64_array_handler,
- .test_pilot_get_double_array = pilot_get_double_array_handler,
- .test_pilot_get_string_array = pilot_get_string_array_handler,
- .test_pilot_get_object_path_array = pilot_get_path_array_handler,
+ .get_FullName = pilot_get_full_name_handler,
+ .get_byte = pilot_get_byte_handler,
+ .get_boolean = pilot_get_boolean_handler,
+ .get_int16 = pilot_get_int16_handler,
+ .get_uint16 = pilot_get_uint16_handler,
+ .get_int32 = pilot_get_int32_handler,
+ .get_uint32 = pilot_get_uint32_handler,
+ .get_int64 = pilot_get_int64_handler,
+ .get_uint64 = pilot_get_uint64_handler,
+ .get_double = pilot_get_double_handler,
+ .get_string = pilot_get_string_handler,
+ .get_object_path = pilot_get_objpath_handler,
+ .get_null_string = pilot_get_null_string_handler,
+ .get_null_path = pilot_get_null_path_handler,
+
+ .get_byte_array = pilot_get_byte_array_handler,
+ .get_int16_array = pilot_get_int16_array_handler,
+ .get_uint16_array = pilot_get_uint16_array_handler,
+ .get_int32_array = pilot_get_int32_array_handler,
+ .get_uint32_array = pilot_get_uint32_array_handler,
+ .get_int64_array = pilot_get_int64_array_handler,
+ .get_uint64_array = pilot_get_uint64_array_handler,
+ .get_double_array = pilot_get_double_array_handler,
+ .get_string_array = pilot_get_string_array_handler,
+ .get_object_path_array = pilot_get_path_array_handler,
};
static int pilot_test_server_init(struct sbus_connection *server, void *unused)