aboutsummaryrefslogtreecommitdiff
path: root/include/authz
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-09-16 14:25:17 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-09-18 14:12:32 -0400
commit30b5707c269cac1ad80b72f777e52c8e08b2ff19 (patch)
tree7201b93d5b438b3a608040e71b10ffec73f9c980 /include/authz
parentc734cd40a10943753a4d015c9d0a6c08c8f0159e (diff)
qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
One of the goals of having less boilerplate on QOM declarations is to avoid human error. Requiring an extra argument that is never used is an opportunity for mistakes. Remove the unused argument from OBJECT_DECLARE_TYPE and OBJECT_DECLARE_SIMPLE_TYPE. Coccinelle patch used to convert all users of the macros: @@ declarer name OBJECT_DECLARE_TYPE; identifier InstanceType, ClassType, lowercase, UPPERCASE; @@ OBJECT_DECLARE_TYPE(InstanceType, ClassType, - lowercase, UPPERCASE); @@ declarer name OBJECT_DECLARE_SIMPLE_TYPE; identifier InstanceType, lowercase, UPPERCASE; @@ OBJECT_DECLARE_SIMPLE_TYPE(InstanceType, - lowercase, UPPERCASE); Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Acked-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Acked-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200916182519.415636-4-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/authz')
-rw-r--r--include/authz/base.h2
-rw-r--r--include/authz/list.h2
-rw-r--r--include/authz/listfile.h2
-rw-r--r--include/authz/pamacct.h2
-rw-r--r--include/authz/simple.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/include/authz/base.h b/include/authz/base.h
index 06b5e29f6f..eca170ee1a 100644
--- a/include/authz/base.h
+++ b/include/authz/base.h
@@ -28,7 +28,7 @@
#define TYPE_QAUTHZ "authz"
OBJECT_DECLARE_TYPE(QAuthZ, QAuthZClass,
- qauthz, QAUTHZ)
+ QAUTHZ)
/**
diff --git a/include/authz/list.h b/include/authz/list.h
index c5eda0f1bf..f73bc5c50a 100644
--- a/include/authz/list.h
+++ b/include/authz/list.h
@@ -27,7 +27,7 @@
#define TYPE_QAUTHZ_LIST "authz-list"
-OBJECT_DECLARE_SIMPLE_TYPE(QAuthZList, qauthz_list,
+OBJECT_DECLARE_SIMPLE_TYPE(QAuthZList,
QAUTHZ_LIST)
diff --git a/include/authz/listfile.h b/include/authz/listfile.h
index 83d78cfa50..51824f3fb2 100644
--- a/include/authz/listfile.h
+++ b/include/authz/listfile.h
@@ -27,7 +27,7 @@
#define TYPE_QAUTHZ_LIST_FILE "authz-list-file"
-OBJECT_DECLARE_SIMPLE_TYPE(QAuthZListFile, qauthz_list_file,
+OBJECT_DECLARE_SIMPLE_TYPE(QAuthZListFile,
QAUTHZ_LIST_FILE)
diff --git a/include/authz/pamacct.h b/include/authz/pamacct.h
index 18087cee20..d05c18a3a4 100644
--- a/include/authz/pamacct.h
+++ b/include/authz/pamacct.h
@@ -27,7 +27,7 @@
#define TYPE_QAUTHZ_PAM "authz-pam"
-OBJECT_DECLARE_SIMPLE_TYPE(QAuthZPAM, qauthz_pam,
+OBJECT_DECLARE_SIMPLE_TYPE(QAuthZPAM,
QAUTHZ_PAM)
diff --git a/include/authz/simple.h b/include/authz/simple.h
index d3ed05b36f..9f5b979e13 100644
--- a/include/authz/simple.h
+++ b/include/authz/simple.h
@@ -26,7 +26,7 @@
#define TYPE_QAUTHZ_SIMPLE "authz-simple"
-OBJECT_DECLARE_SIMPLE_TYPE(QAuthZSimple, qauthz_simple,
+OBJECT_DECLARE_SIMPLE_TYPE(QAuthZSimple,
QAUTHZ_SIMPLE)