examples: Group all C programs together

All other examples are organized using the either the format/
or the format/category/ hierarchy already, and grouping all
C programs together removes the last remaining outliers.

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 18:16:59 +02:00
parent d56fc3c158
commit 571cb9db30
18 changed files with 52 additions and 52 deletions

30
.gitignore vendored
View File

@ -68,21 +68,21 @@
/docs/libvirt-refs.xml /docs/libvirt-refs.xml
/docs/news.html.in /docs/news.html.in
/docs/todo.html.in /docs/todo.html.in
/examples/admin/client_close /examples/c/admin/client_close
/examples/admin/client_info /examples/c/admin/client_info
/examples/admin/client_limits /examples/c/admin/client_limits
/examples/admin/list_clients /examples/c/admin/list_clients
/examples/admin/list_servers /examples/c/admin/list_servers
/examples/admin/logging /examples/c/admin/logging
/examples/admin/threadpool_params /examples/c/admin/threadpool_params
/examples/domain/dommigrate /examples/c/domain/dommigrate
/examples/domain/domtop /examples/c/domain/domtop
/examples/domain/info1 /examples/c/domain/info1
/examples/domain/rename /examples/c/domain/rename
/examples/domain/suspend /examples/c/domain/suspend
/examples/misc/event-test /examples/c/misc/event-test
/examples/misc/hellolibvirt /examples/c/misc/hellolibvirt
/examples/misc/openauth /examples/c/misc/openauth
/gnulib/lib/* /gnulib/lib/*
/gnulib/m4/* /gnulib/m4/*
/gnulib/tests/* /gnulib/tests/*

2
cfg.mk
View File

@ -1253,7 +1253,7 @@ exclude_file_name_regexp--sc_prohibit_newline_at_end_of_diagnostic = \
^src/rpc/gendispatch\.pl$$ ^src/rpc/gendispatch\.pl$$
exclude_file_name_regexp--sc_prohibit_nonreentrant = \ exclude_file_name_regexp--sc_prohibit_nonreentrant = \
^((po|tests|examples/admin)/|docs/.*(py|js|html\.in)|run.in$$|tools/wireshark/util/genxdrstub\.pl$$) ^((po|tests|examples)/|docs/.*(py|js|html\.in)|run.in$$|tools/wireshark/util/genxdrstub\.pl$$)
exclude_file_name_regexp--sc_prohibit_select = \ exclude_file_name_regexp--sc_prohibit_select = \
^cfg\.mk$$ ^cfg\.mk$$

View File

@ -19,15 +19,15 @@
FILTERS = $(wildcard $(srcdir)/xml/nwfilter/*.xml) FILTERS = $(wildcard $(srcdir)/xml/nwfilter/*.xml)
ADMIN_EXAMPLES = \ ADMIN_EXAMPLES = \
$(wildcard $(srcdir)/admin/*.c) \ $(wildcard $(srcdir)/c/admin/*.c) \
$(NULL) $(NULL)
DOMAIN_EXAMPLES = \ DOMAIN_EXAMPLES = \
$(wildcard $(srcdir)/domain/*.c) \ $(wildcard $(srcdir)/c/domain/*.c) \
$(NULL) $(NULL)
MISC_EXAMPLES = \ MISC_EXAMPLES = \
$(wildcard $(srcdir)/misc/*.c) \ $(wildcard $(srcdir)/c/misc/*.c) \
$(NULL) $(NULL)
POLKIT_EXAMPLES = \ POLKIT_EXAMPLES = \
@ -78,38 +78,38 @@ LDADD = \
$(NULL) $(NULL)
noinst_PROGRAMS = \ noinst_PROGRAMS = \
admin/client_close \ c/admin/client_close \
admin/client_info \ c/admin/client_info \
admin/client_limits \ c/admin/client_limits \
admin/list_clients \ c/admin/list_clients \
admin/list_servers \ c/admin/list_servers \
admin/logging \ c/admin/logging \
admin/threadpool_params \ c/admin/threadpool_params \
domain/dommigrate \ c/domain/dommigrate \
domain/domtop \ c/domain/domtop \
domain/info1 \ c/domain/info1 \
domain/rename \ c/domain/rename \
domain/suspend \ c/domain/suspend \
misc/event-test \ c/misc/event-test \
misc/hellolibvirt \ c/misc/hellolibvirt \
misc/openauth \ c/misc/openauth \
$(NULL) $(NULL)
admin_client_close_SOURCES = admin/client_close.c c_admin_client_close_SOURCES = c/admin/client_close.c
admin_client_info_SOURCES = admin/client_info.c c_admin_client_info_SOURCES = c/admin/client_info.c
admin_client_limits_SOURCES = admin/client_limits.c c_admin_client_limits_SOURCES = c/admin/client_limits.c
admin_list_clients_SOURCES = admin/list_clients.c c_admin_list_clients_SOURCES = c/admin/list_clients.c
admin_list_servers_SOURCES = admin/list_servers.c c_admin_list_servers_SOURCES = c/admin/list_servers.c
admin_logging_SOURCES = admin/logging.c c_admin_logging_SOURCES = c/admin/logging.c
admin_threadpool_params_SOURCES = admin/threadpool_params.c c_admin_threadpool_params_SOURCES = c/admin/threadpool_params.c
domain_dommigrate_SOURCES = domain/dommigrate.c c_domain_dommigrate_SOURCES = c/domain/dommigrate.c
domain_domtop_SOURCES = domain/domtop.c c_domain_domtop_SOURCES = c/domain/domtop.c
domain_info1_SOURCES = domain/info1.c c_domain_info1_SOURCES = c/domain/info1.c
domain_rename_SOURCES = domain/rename.c c_domain_rename_SOURCES = c/domain/rename.c
domain_suspend_SOURCES = domain/suspend.c c_domain_suspend_SOURCES = c/domain/suspend.c
misc_event_test_SOURCES = misc/event-test.c c_misc_event_test_SOURCES = c/misc/event-test.c
misc_hellolibvirt_SOURCES = misc/hellolibvirt.c c_misc_hellolibvirt_SOURCES = c/misc/hellolibvirt.c
misc_openauth_SOURCES = misc/openauth.c c_misc_openauth_SOURCES = c/misc/openauth.c
if WITH_NWFILTER if WITH_NWFILTER
@ -120,13 +120,13 @@ endif WITH_NWFILTER
examplesdir = $(docdir)/examples examplesdir = $(docdir)/examples
adminexamplesdir = $(examplesdir)/admin adminexamplesdir = $(examplesdir)/c/admin
adminexamples_DATA = $(ADMIN_EXAMPLES) adminexamples_DATA = $(ADMIN_EXAMPLES)
domainexamplesdir = $(examplesdir)/domain domainexamplesdir = $(examplesdir)/c/domain
domainexamples_DATA = $(DOMAIN_EXAMPLES) domainexamples_DATA = $(DOMAIN_EXAMPLES)
miscexamplesdir = $(examplesdir)/misc miscexamplesdir = $(examplesdir)/c/misc
miscexamples_DATA = $(MISC_EXAMPLES) miscexamples_DATA = $(MISC_EXAMPLES)
polkitexamplesdir = $(examplesdir)/polkit polkitexamplesdir = $(examplesdir)/polkit