diff options
author | Pavel Březina <pbrezina@redhat.com> | 2015-01-15 14:49:25 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-02-17 15:59:49 +0100 |
commit | 4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cb (patch) | |
tree | f171f9ca17bcdd1196e555ac31a27adec1fb17eb /src/sbus | |
parent | beeef7f627a5ed9264de25ee4c76eb9620c1c984 (diff) | |
download | sssd-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/sbus')
-rwxr-xr-x | src/sbus/sbus_codegen | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbus/sbus_codegen b/src/sbus/sbus_codegen index f93cb33a4..6554cd378 100755 --- a/src/sbus/sbus_codegen +++ b/src/sbus/sbus_codegen @@ -188,7 +188,7 @@ class Property(Typed): def fq_c_name(self): return "%s_%s" % (self.iface.c_name(), self.c_name()) def getter_name(self): - return "%s_get_%s" % (self.iface.c_name(), self.c_name()) + return "get_%s" % self.c_name() def getter_invoker_name(self): return "sbus_invoke_get_%s" % self.type def getter_signature(self, name): |