summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Bolognani <abologna@redhat.com>2019-05-22 17:49:43 +0200
committerAndrea Bolognani <abologna@redhat.com>2019-06-03 17:27:37 +0200
commit4ebefac793605544b53b126ae2ce95876e41d88e (patch)
tree177d8ff53e8f36a9d72006b73223866397429c01
parent81c2486ab7dbeab69a217b24270768640a40d120 (diff)
downloadlibvirt-4ebefac793605544b53b126ae2ce95876e41d88e.tar.gz
examples: Organize C examples into categories
Most C examples live in their own directory, which seems a bit unnecessary especially considering that all virt-admin related examples share a single admin/ directory. Reorganize non-admin C examples in two categories: domain/ for those that act on a domain, and misc/ for everything else. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Acked-by: Michal Privoznik <mprivozn@redhat.com>
-rw-r--r--.gitignore16
-rw-r--r--examples/Makefile.am45
-rw-r--r--examples/domain/dommigrate.c (renamed from examples/dommigrate/dommigrate.c)0
-rw-r--r--examples/domain/domtop.c (renamed from examples/domtop/domtop.c)0
-rw-r--r--examples/domain/info1.c (renamed from examples/dominfo/info1.c)0
-rw-r--r--examples/domain/rename.c (renamed from examples/rename/rename.c)0
-rw-r--r--examples/domain/suspend.c (renamed from examples/domsuspend/suspend.c)0
-rw-r--r--examples/misc/event-test.c (renamed from examples/object-events/event-test.c)0
-rw-r--r--examples/misc/hellolibvirt.c (renamed from examples/hellolibvirt/hellolibvirt.c)0
-rw-r--r--examples/misc/openauth.c (renamed from examples/openauth/openauth.c)0
10 files changed, 29 insertions, 32 deletions
diff --git a/.gitignore b/.gitignore
index 16eb4a3e2e..c15263037d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -75,14 +75,14 @@
/examples/admin/list_servers
/examples/admin/logging
/examples/admin/threadpool_params
-/examples/object-events/event-test
-/examples/dominfo/info1
-/examples/domsuspend/suspend
-/examples/dommigrate/dommigrate
-/examples/domtop/domtop
-/examples/hellolibvirt/hellolibvirt
-/examples/openauth/openauth
-/examples/rename/rename
+/examples/domain/dommigrate
+/examples/domain/domtop
+/examples/domain/info1
+/examples/domain/rename
+/examples/domain/suspend
+/examples/misc/event-test
+/examples/misc/hellolibvirt
+/examples/misc/openauth
/gnulib/lib/*
/gnulib/m4/*
/gnulib/tests/*
diff --git a/examples/Makefile.am b/examples/Makefile.am
index d613135086..832e5fea08 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -78,38 +78,35 @@ EXAMPLES = \
admin/list_servers \
admin/logging \
admin/threadpool_params \
- dominfo/info1 \
- dommigrate/dommigrate \
- domsuspend/suspend \
- domtop/domtop \
- hellolibvirt/hellolibvirt \
- object-events/event-test \
- openauth/openauth \
- rename/rename \
+ domain/dommigrate \
+ domain/domtop \
+ domain/info1 \
+ domain/rename \
+ domain/suspend \
+ misc/event-test \
+ misc/hellolibvirt \
+ misc/openauth \
$(NULL)
noinst_PROGRAMS = \
$(EXAMPLES) \
$(NULL)
-dominfo_info1_SOURCES = dominfo/info1.c
-dommigrate_dommigrate_SOURCES = dommigrate/dommigrate.c
-domsuspend_suspend_SOURCES = domsuspend/suspend.c
-domtop_domtop_SOURCES = domtop/domtop.c
-hellolibvirt_hellolibvirt_SOURCES = hellolibvirt/hellolibvirt.c
-
-object_events_event_test_SOURCES = object-events/event-test.c
-
-openauth_openauth_SOURCES = openauth/openauth.c
-rename_rename_SOURCES = rename/rename.c
-
-admin_list_servers_SOURCES = admin/list_servers.c
-admin_list_clients_SOURCES = admin/list_clients.c
-admin_threadpool_params_SOURCES = admin/threadpool_params.c
-admin_client_limits_SOURCES = admin/client_limits.c
-admin_client_info_SOURCES = admin/client_info.c
admin_client_close_SOURCES = admin/client_close.c
+admin_client_info_SOURCES = admin/client_info.c
+admin_client_limits_SOURCES = admin/client_limits.c
+admin_list_clients_SOURCES = admin/list_clients.c
+admin_list_servers_SOURCES = admin/list_servers.c
admin_logging_SOURCES = admin/logging.c
+admin_threadpool_params_SOURCES = admin/threadpool_params.c
+domain_dommigrate_SOURCES = domain/dommigrate.c
+domain_domtop_SOURCES = domain/domtop.c
+domain_info1_SOURCES = domain/info1.c
+domain_rename_SOURCES = domain/rename.c
+domain_suspend_SOURCES = domain/suspend.c
+misc_event_test_SOURCES = misc/event-test.c
+misc_hellolibvirt_SOURCES = misc/hellolibvirt.c
+misc_openauth_SOURCES = misc/openauth.c
if WITH_NWFILTER
diff --git a/examples/dommigrate/dommigrate.c b/examples/domain/dommigrate.c
index 60cfb3fb83..60cfb3fb83 100644
--- a/examples/dommigrate/dommigrate.c
+++ b/examples/domain/dommigrate.c
diff --git a/examples/domtop/domtop.c b/examples/domain/domtop.c
index e463e2873f..e463e2873f 100644
--- a/examples/domtop/domtop.c
+++ b/examples/domain/domtop.c
diff --git a/examples/dominfo/info1.c b/examples/domain/info1.c
index f0ea9b9f08..f0ea9b9f08 100644
--- a/examples/dominfo/info1.c
+++ b/examples/domain/info1.c
diff --git a/examples/rename/rename.c b/examples/domain/rename.c
index 85f18e9df3..85f18e9df3 100644
--- a/examples/rename/rename.c
+++ b/examples/domain/rename.c
diff --git a/examples/domsuspend/suspend.c b/examples/domain/suspend.c
index af61129ecc..af61129ecc 100644
--- a/examples/domsuspend/suspend.c
+++ b/examples/domain/suspend.c
diff --git a/examples/object-events/event-test.c b/examples/misc/event-test.c
index fcf4492470..fcf4492470 100644
--- a/examples/object-events/event-test.c
+++ b/examples/misc/event-test.c
diff --git a/examples/hellolibvirt/hellolibvirt.c b/examples/misc/hellolibvirt.c
index bfb12846e6..bfb12846e6 100644
--- a/examples/hellolibvirt/hellolibvirt.c
+++ b/examples/misc/hellolibvirt.c
diff --git a/examples/openauth/openauth.c b/examples/misc/openauth.c
index efd21c374f..efd21c374f 100644
--- a/examples/openauth/openauth.c
+++ b/examples/misc/openauth.c