提交 4a0cef94 编写于 作者: R Richard W.M. Jones

Tue Jun 26 14:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>

	* src/remote_internal.c, python/Makefile.am: Python bindings
	  fixed, and now building virConnect.getHostname and
	  virConnect.getURI.  Fixed a problem which stopped
	  libvirt.py from being (re-)built.  Rearranged
	  python/Makefile.am to make it cleaner and clearer.
上级 2be812bb
Tue Jun 26 14:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c, python/Makefile.am: Python bindings
fixed, and now building virConnect.getHostname and
virConnect.getURI. Fixed a problem which stopped
libvirt.py from being (re-)built. Rearranged
python/Makefile.am to make it cleaner and clearer.
Tue Jun 26 12:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> Tue Jun 26 12:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* include/libvirt/libvirt.h.in, src/libvirt.c: (and numerous * include/libvirt/libvirt.h.in, src/libvirt.c: (and numerous
......
...@@ -37,35 +37,31 @@ libvirtmod_la_LIBADD = $(mylibs) ...@@ -37,35 +37,31 @@ libvirtmod_la_LIBADD = $(mylibs)
# Python header files contain a redundant decl, hence: # Python header files contain a redundant decl, hence:
libvirtmod_la_CFLAGS = -Wno-redundant-decls libvirtmod_la_CFLAGS = -Wno-redundant-decls
libvirt.py: $(srcdir)/libvir.py libvirtclass.py
cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pythondir)
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
$(mkinstalldirs) $(DESTDIR)$(DOCS_DIR)
@(for doc in $(DOCS) ; \
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
GENERATE = generator.py GENERATE = generator.py
API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml
GENERATED= libvirt.py \ GENERATED= libvirt-export.c \
libvirt-export.c \
libvirtclass.txt \ libvirtclass.txt \
libvirt-py.c \ libvirt-py.c \
libvirt-py.h \ libvirt-py.h \
libvirtclass.py libvirtclass.py
CLEANFILES= $(GENERATED) gen_prog libvirt.py $(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
$(GENERATED): gen_prog
gen_prog: $(srcdir)/$(GENERATE) $(API_DESC)
$(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
touch gen_prog
libvirt.py: $(srcdir)/libvir.py libvirtclass.py
cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py
$(libvirtmod_la_OBJECTS): $(GENERATED) $(libvirtmod_la_OBJECTS): $(GENERATED)
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pythondir)
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
$(mkinstalldirs) $(DESTDIR)$(DOCS_DIR)
@(for doc in $(DOCS) ; \
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
CLEANFILES= $(GENERATED) libvirt.py
else else
all: all:
endif endif
......
...@@ -104,15 +104,6 @@ static void query_free (struct query_fields *fields); ...@@ -104,15 +104,6 @@ static void query_free (struct query_fields *fields);
static int initialise_gnutls (virConnectPtr conn); static int initialise_gnutls (virConnectPtr conn);
static gnutls_session_t negotiate_gnutls_on_connection (virConnectPtr conn, int sock, int no_verify, const char *hostname); static gnutls_session_t negotiate_gnutls_on_connection (virConnectPtr conn, int sock, int no_verify, const char *hostname);
/* Supported transports. */
enum transport {
trans_tls,
trans_unix,
trans_ssh,
trans_ext,
trans_tcp,
};
static int static int
remoteOpen (virConnectPtr conn, const char *uri_str, int flags) remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
{ {
...@@ -131,7 +122,14 @@ remoteOpen (virConnectPtr conn, const char *uri_str, int flags) ...@@ -131,7 +122,14 @@ remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
return VIR_DRV_OPEN_DECLINED; /* Decline - not a remote URL. */ return VIR_DRV_OPEN_DECLINED; /* Decline - not a remote URL. */
/* What transport? */ /* What transport? */
enum transport transport; enum {
trans_tls,
trans_unix,
trans_ssh,
trans_ext,
trans_tcp,
} transport;
if (!transport_str || strcasecmp (transport_str, "tls") == 0) if (!transport_str || strcasecmp (transport_str, "tls") == 0)
transport = trans_tls; transport = trans_tls;
else if (strcasecmp (transport_str, "unix") == 0) else if (strcasecmp (transport_str, "unix") == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册