mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 18:03:50 +03: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 dnsmasqCaps *dnsmasqCapsPtr;
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(dnsmasqCaps, virObjectUnref);
|
||||
|
||||
|
||||
dnsmasqContext * dnsmasqContextNew(const char *network_name,
|
||||
const char *config_dir);
|
||||
void dnsmasqContextFree(dnsmasqContext *ctx);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(dnsmasqContext, dnsmasqContextFree);
|
||||
|
||||
int dnsmasqAddDhcpHost(dnsmasqContext *ctx,
|
||||
const char *mac,
|
||||
virSocketAddr *ip,
|
||||
|
Loading…
x
Reference in New Issue
Block a user