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>
This commit is contained in:
Andrea Bolognani 2019-05-22 17:49:43 +02:00
parent 81c2486ab7
commit 4ebefac793
10 changed files with 29 additions and 32 deletions

16
.gitignore vendored
View File

@ -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/*

View File

@ -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