1 |
commit: f75afcc457f08549e378dfabc205dec5fa98e1c5 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 8 05:24:32 2012 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Feb 8 05:26:21 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc-settingsd.git;a=commit;h=f75afcc4 |
7 |
|
8 |
Add DTD to hostname introspection xml file, and give it a better name |
9 |
|
10 |
--- |
11 |
Makefile.am | 6 +++--- |
12 |
data/{hostnamed.xml => hostname1.xml} | 1 + |
13 |
2 files changed, 4 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/Makefile.am b/Makefile.am |
16 |
index 58a1dea..6b6cb78 100644 |
17 |
--- a/Makefile.am |
18 |
+++ b/Makefile.am |
19 |
@@ -1,7 +1,7 @@ |
20 |
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} |
21 |
|
22 |
EXTRA_DIST = \ |
23 |
- data/hostnamed.xml \ |
24 |
+ data/hostname1.xml \ |
25 |
$(NULL) |
26 |
|
27 |
AM_CPPFLAGS = \ |
28 |
@@ -33,12 +33,12 @@ openrc_settingsd_SOURCES = \ |
29 |
src/main.c \ |
30 |
$(NULL) |
31 |
|
32 |
-$(hostnamed_built_sources) : data/hostnamed.xml |
33 |
+$(hostnamed_built_sources) : data/hostname1.xml |
34 |
( $(GDBUS_CODEGEN) \ |
35 |
--interface-prefix org.freedesktop. \ |
36 |
--c-namespace OpenrcSettingsdHostnamed \ |
37 |
--generate-c-code hostnamed-generated \ |
38 |
- $(srcdir)/data/hostnamed.xml; \ |
39 |
+ $(srcdir)/data/hostname1.xml; \ |
40 |
mv hostnamed-generated.{c,h} $(top_srcdir)/src/ ) |
41 |
|
42 |
BUILT_SOURCES = $(hostnamed_built_sources) |
43 |
|
44 |
diff --git a/data/hostnamed.xml b/data/hostname1.xml |
45 |
similarity index 88% |
46 |
rename from data/hostnamed.xml |
47 |
rename to data/hostname1.xml |
48 |
index 80c0216..7a731f6 100644 |
49 |
--- a/data/hostnamed.xml |
50 |
+++ b/data/hostname1.xml |
51 |
@@ -1,3 +1,4 @@ |
52 |
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> |
53 |
<node name="/org/freedesktop/hostname1"> |
54 |
<interface name="org.freedesktop.hostname1"> |
55 |
<method name="SetHostname"> |