Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
nwfilter binding: move wrapper functions out of compat header
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
  • Loading branch information
berrange committed Jul 23, 2018
1 parent abdbf0e commit 5a42887
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 11 deletions.
1 change: 1 addition & 0 deletions nwfilter_binding.go
Expand Up @@ -31,6 +31,7 @@ package libvirt
#include <libvirt/virterror.h>
#include <stdlib.h>
#include "nwfilter_binding_compat.h"
#include "nwfilter_binding_wrapper.h"
*/
import "C"

Expand Down
11 changes: 0 additions & 11 deletions nwfilter_binding_compat.h
Expand Up @@ -30,15 +30,4 @@
typedef struct _virNWFilterBinding *virNWFilterBindingPtr;
#endif

const char *virNWFilterBindingGetPortDevWrapper(virNWFilterBindingPtr binding);
const char *virNWFilterBindingGetFilterNameWrapper(virNWFilterBindingPtr binding);

char *virNWFilterBindingGetXMLDescWrapper(virNWFilterBindingPtr binding,
unsigned int flags);

int virNWFilterBindingDeleteWrapper(virNWFilterBindingPtr binding);
int virNWFilterBindingRefWrapper(virNWFilterBindingPtr binding);
int virNWFilterBindingFreeWrapper(virNWFilterBindingPtr binding);


#endif /* LIBVIRT_GO_NWFILTER_BINDING_COMPAT_H__ */
1 change: 1 addition & 0 deletions nwfilter_binding_compat.go → nwfilter_binding_wrapper.go
Expand Up @@ -30,6 +30,7 @@ package libvirt
#include <libvirt/libvirt.h>
#include <assert.h>
#include "nwfilter_binding_compat.h"
#include "nwfilter_binding_wrapper.h"
const char *virNWFilterBindingGetPortDevWrapper(virNWFilterBindingPtr binding)
{
Expand Down
38 changes: 38 additions & 0 deletions nwfilter_binding_wrapper.h
@@ -0,0 +1,38 @@
/*
* This file is part of the libvirt-go project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* Copyright (C) 2018 Red Hat, Inc.
*
*/

#ifndef LIBVIRT_GO_NWFILTER_BINDING_WRAPPER_H__
#define LIBVIRT_GO_NWFILTER_BINDING_WRAPPER_H__

const char *virNWFilterBindingGetPortDevWrapper(virNWFilterBindingPtr binding);
const char *virNWFilterBindingGetFilterNameWrapper(virNWFilterBindingPtr binding);
char *virNWFilterBindingGetXMLDescWrapper(virNWFilterBindingPtr binding,
unsigned int flags);
int virNWFilterBindingDeleteWrapper(virNWFilterBindingPtr binding);
int virNWFilterBindingRefWrapper(virNWFilterBindingPtr binding);
int virNWFilterBindingFreeWrapper(virNWFilterBindingPtr binding);


#endif /* LIBVIRT_GO_NWFILTER_BINDING_WRAPPER_H__ */

0 comments on commit 5a42887

Please sign in to comment.