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.
This commit is contained in:
parent
2be812bbc9
commit
4a0cef94a5
@ -1,3 +1,11 @@
|
|||||||
|
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,9 +37,22 @@ 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
|
||||||
|
|
||||||
|
GENERATE = generator.py
|
||||||
|
API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml
|
||||||
|
GENERATED= libvirt-export.c \
|
||||||
|
libvirtclass.txt \
|
||||||
|
libvirt-py.c \
|
||||||
|
libvirt-py.h \
|
||||||
|
libvirtclass.py
|
||||||
|
|
||||||
|
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
||||||
|
$(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
||||||
|
|
||||||
libvirt.py: $(srcdir)/libvir.py libvirtclass.py
|
libvirt.py: $(srcdir)/libvir.py libvirtclass.py
|
||||||
cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py
|
cat $(srcdir)/libvir.py libvirtclass.py > libvirt.py
|
||||||
|
|
||||||
|
$(libvirtmod_la_OBJECTS): $(GENERATED)
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
$(mkinstalldirs) $(DESTDIR)$(pythondir)
|
||||||
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
|
@INSTALL@ -m 0644 libvirt.py $(DESTDIR)$(pythondir)
|
||||||
@ -47,24 +60,7 @@ install-data-local:
|
|||||||
@(for doc in $(DOCS) ; \
|
@(for doc in $(DOCS) ; \
|
||||||
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
|
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
|
||||||
|
|
||||||
GENERATE = generator.py
|
CLEANFILES= $(GENERATED) libvirt.py
|
||||||
API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml
|
|
||||||
GENERATED= libvirt.py \
|
|
||||||
libvirt-export.c \
|
|
||||||
libvirtclass.txt \
|
|
||||||
libvirt-py.c \
|
|
||||||
libvirt-py.h \
|
|
||||||
libvirtclass.py
|
|
||||||
|
|
||||||
CLEANFILES= $(GENERATED) gen_prog libvirt.py
|
|
||||||
|
|
||||||
$(GENERATED): gen_prog
|
|
||||||
|
|
||||||
gen_prog: $(srcdir)/$(GENERATE) $(API_DESC)
|
|
||||||
$(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
|
||||||
touch gen_prog
|
|
||||||
|
|
||||||
$(libvirtmod_la_OBJECTS): $(GENERATED)
|
|
||||||
|
|
||||||
else
|
else
|
||||||
all:
|
all:
|
||||||
|
@ -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)
|
|||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user