]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
admin: Move admin_server.{h,c} to admin.{h,c}
authorErik Skultety <eskultet@redhat.com>
Mon, 10 Aug 2015 10:39:33 +0000 (12:39 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 17 Feb 2016 11:46:34 +0000 (12:46 +0100)
This change is merely because admin_server would contain all the code
from dispatchers and helpers to the actual APIs. Admin should have
similar structure to the daemon-side remote driver - dispatchers and
helpers in a separate module, APIs in a separate module.

Best viewed with -M.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
daemon/Makefile.am
daemon/admin.c [moved from daemon/admin_server.c with 96% similarity]
daemon/admin.h [moved from daemon/admin_server.h with 92% similarity]
daemon/libvirtd.c
po/POTFILES.in

index be1b5a940d7a897cb108123c4ae3a94f7dcd1593..9edaf5f696b1499fb0e1a8ac7b5ef5aa1676c13f 100644 (file)
@@ -128,7 +128,7 @@ libvirtd_conf_la_LIBADD = $(LIBXML_LIBS)
 
 noinst_LTLIBRARIES += libvirtd_admin.la
 libvirtd_admin_la_SOURCES = \
-               admin_server.c admin_server.h
+               admin.c admin.h
 
 libvirtd_admin_la_CFLAGS = \
                $(AM_CFLAGS)            \
@@ -319,7 +319,8 @@ endif ! WITH_POLKIT
 
 remote.c: $(DAEMON_GENERATED)
 remote.h: $(DAEMON_GENERATED)
-admin_server.c: $(DAEMON_GENERATED)
+admin.c: $(DAEMON_GENERATED)
+admin.h: $(DAEMON_GENERATED)
 
 LOGROTATE_CONFS = libvirtd.qemu.logrotate libvirtd.lxc.logrotate \
                  libvirtd.libxl.logrotate libvirtd.uml.logrotate \
similarity index 96%
rename from daemon/admin_server.c
rename to daemon/admin.c
index 189091e75a150d83a1fde16226cc74b24ff3969c..fa6caf337e043e2979ea96f306cb1e9a7ab338d4 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * admin_server.c:
+ * admin.c: handlers for admin RPC method calls
  *
- * Copyright (C) 2014-2015 Red Hat, Inc.
+ * Copyright (C) 2014-2016 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,7 @@
 #include "libvirt_internal.h"
 
 #include "admin_protocol.h"
-#include "admin_server.h"
+#include "admin.h"
 #include "datatypes.h"
 #include "viralloc.h"
 #include "virerror.h"
similarity index 92%
rename from daemon/admin_server.h
rename to daemon/admin.h
index 26721a6d582be53392ceea5e03313acc3c02f744..c869cc7aaba62a19090efa3526fc2934a3f5c050 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * admin_server.h
+ * admin.h: handlers for admin RPC method calls
  *
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (C) 2014-2016 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
index a747553bfbc0b2ec8891f3593b40605268bd3122..d1b98c9c3d0251f7d85736b21e72c2791d2054b0 100644 (file)
@@ -44,7 +44,7 @@
 #include "libvirtd.h"
 #include "libvirtd-config.h"
 
-#include "admin_server.h"
+#include "admin.h"
 #include "viruuid.h"
 #include "remote_driver.h"
 #include "viralloc.h"
index 923d288398ffd970d6a8aa706dae4303007096fe..171d2b1e1534900b00f248465bbd9d72911cfa45 100644 (file)
@@ -1,5 +1,5 @@
 daemon/admin_dispatch.h
-daemon/admin_server.c
+daemon/admin.c
 daemon/libvirtd-config.c
 daemon/libvirtd.c
 daemon/qemu_dispatch.h