mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
util: define g_autoptr cleanups for a couple dnsmasq objects
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
cc5da62bbd
commit
7ad6ad6867
@ -78,10 +78,14 @@ typedef enum {
|
|||||||
typedef struct _dnsmasqCaps dnsmasqCaps;
|
typedef struct _dnsmasqCaps dnsmasqCaps;
|
||||||
typedef dnsmasqCaps *dnsmasqCapsPtr;
|
typedef dnsmasqCaps *dnsmasqCapsPtr;
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(dnsmasqCaps, virObjectUnref);
|
||||||
|
|
||||||
|
|
||||||
dnsmasqContext * dnsmasqContextNew(const char *network_name,
|
dnsmasqContext * dnsmasqContextNew(const char *network_name,
|
||||||
const char *config_dir);
|
const char *config_dir);
|
||||||
void dnsmasqContextFree(dnsmasqContext *ctx);
|
void dnsmasqContextFree(dnsmasqContext *ctx);
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(dnsmasqContext, dnsmasqContextFree);
|
||||||
|
|
||||||
int dnsmasqAddDhcpHost(dnsmasqContext *ctx,
|
int dnsmasqAddDhcpHost(dnsmasqContext *ctx,
|
||||||
const char *mac,
|
const char *mac,
|
||||||
virSocketAddr *ip,
|
virSocketAddr *ip,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user