~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to src/conf/nwfilter_params.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-13 15:44:12 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20120513154412-fgmn5sxqdzgnzlx3
Tags: 0.9.12-0ubuntu1
* New upstream version:
  * Synchronize with debian packaging:
    - debian/control: Update build depends.
    - debian/libvirt-bin.postrm: Cleanup /var/log/libvirt
      on purge.
    - Bump standards verson (no changes).
    - debian/patches/Don-t-fail-if-we-can-t-setup-avahi.patch: Added
  * Dropped patches:
    - debian/patches/Debianize-libvirt-guests.patch
    - debian/patches/rewrite-lxc-controller-eof-handling-yet-again
    - debian/patches/ubuntu/libnl13.patch
    - debian/patches/ubuntu/fix-lxc-startup-error.patch
    - debian/patches/ubuntu/fix-bridge-fd.patch
    - debian/patches/ubuntu/skip-labelling-network-disks.patch
    - debian/patches/ubuntu/xen-xend-shutdown-detection.patch
    - debian/patches/ubuntu/xen-config-no-vfb-for-hvm.patch
    - debian/patches/debian/Disable-daemon-start-test.patch
    - debian/patches/debian/Disable-gnulib-s-test-nonplocking-pipe.sh.patch
    - debian/patches/ubuntu/9006-default-config-test-case.patch
    - debian/patches/fix-block-migration.patch
    - debian/patches/ubuntu/9022-qemu-unescape-HMP-commands-before-converting-them-to.patch
    - debian/patches/ubuntu/9023-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/9024-qemu-allow-snapshotting-of-sheepdog-and-rbd-disks.patch
    - debian/patches/9025-qemu-change-rbd-auth_supported-separation-character-.patch
    - debian/patches/ubuntu/arm-gcc-workaround.patch
  * Rediffed:
    - debian/patches/Allow-libvirt-group-to-access-the-socket.patch
    - debian/patches/Disable-failing-virnetsockettest.patch
    - debian/patches/dnsmasq-as-priv-user
    - debian/patches/9002-better_default_uri_virsh.patch
  * debian/control: Add libnl-route-3-dev ass a build depends.
  * debian/patches/libnl3-build-fix.patch: Fix build with libnl3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef NWFILTER_PARAMS_H
24
24
# define NWFILTER_PARAMS_H
25
25
 
26
 
# include "hash.h"
 
26
# include "virhash.h"
27
27
# include "buf.h"
28
28
 
29
29
enum virNWFilterVarValueType {
91
91
# define VALID_VARVALUE \
92
92
  "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.:"
93
93
 
 
94
enum virNWFilterVarAccessType {
 
95
    VIR_NWFILTER_VAR_ACCESS_ELEMENT = 0,
 
96
    VIR_NWFILTER_VAR_ACCESS_ITERATOR = 1,
 
97
 
 
98
    VIR_NWFILTER_VAR_ACCESS_LAST,
 
99
};
 
100
 
 
101
typedef struct _virNWFilterVarAccess virNWFilterVarAccess;
 
102
typedef virNWFilterVarAccess *virNWFilterVarAccessPtr;
 
103
struct  _virNWFilterVarAccess {
 
104
    enum virNWFilterVarAccessType accessType;
 
105
    union {
 
106
        struct {
 
107
            unsigned int index;
 
108
            unsigned int intIterId;
 
109
        } index;
 
110
        unsigned int iterId;
 
111
    } u;
 
112
    char *varName;
 
113
};
 
114
 
 
115
# define VIR_NWFILTER_MAX_ITERID   1000
 
116
 
 
117
void virNWFilterVarAccessFree(virNWFilterVarAccessPtr varAccess);
 
118
bool virNWFilterVarAccessEqual(const virNWFilterVarAccessPtr a,
 
119
                               const virNWFilterVarAccessPtr b);
 
120
virNWFilterVarAccessPtr virNWFilterVarAccessParse(const char *varAccess);
 
121
void virNWFilterVarAccessPrint(virNWFilterVarAccessPtr vap,
 
122
                               virBufferPtr buf);
 
123
const char *virNWFilterVarAccessGetVarName(const virNWFilterVarAccessPtr vap);
 
124
enum virNWFilterVarAccessType virNWFilterVarAccessGetType(
 
125
                                           const virNWFilterVarAccessPtr vap);
 
126
unsigned int virNWFilterVarAccessGetIterId(const virNWFilterVarAccessPtr vap);
 
127
unsigned int virNWFilterVarAccessGetIndex(const virNWFilterVarAccessPtr vap);
 
128
bool virNWFilterVarAccessIsAvailable(const virNWFilterVarAccessPtr vap,
 
129
                                     const virNWFilterHashTablePtr hash);
 
130
 
94
131
typedef struct _virNWFilterVarCombIterEntry virNWFilterVarCombIterEntry;
95
132
typedef virNWFilterVarCombIterEntry *virNWFilterVarCombIterEntryPtr;
96
133
struct _virNWFilterVarCombIterEntry {
99
136
    size_t nVarNames;
100
137
    unsigned int maxValue;
101
138
    unsigned int curValue;
 
139
    unsigned int minValue;
102
140
};
103
141
 
104
142
typedef struct _virNWFilterVarCombIter virNWFilterVarCombIter;
110
148
};
111
149
virNWFilterVarCombIterPtr virNWFilterVarCombIterCreate(
112
150
                             virNWFilterHashTablePtr hash,
113
 
                             char * const *vars, unsigned int nVars);
 
151
                             virNWFilterVarAccessPtr *vars,
 
152
                             size_t nVars);
114
153
 
115
154
void virNWFilterVarCombIterFree(virNWFilterVarCombIterPtr ci);
116
155
virNWFilterVarCombIterPtr virNWFilterVarCombIterNext(
117
156
                                virNWFilterVarCombIterPtr ci);
118
157
const char *virNWFilterVarCombIterGetVarValue(virNWFilterVarCombIterPtr ci,
119
 
                                              const char *varname);
 
158
                                              const virNWFilterVarAccessPtr);
 
159
 
120
160
 
121
161
#endif /* NWFILTER_PARAMS_H */