# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _capng
else:
    import _capng

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


CAP_CHOWN = _capng.CAP_CHOWN
CAP_DAC_OVERRIDE = _capng.CAP_DAC_OVERRIDE
CAP_DAC_READ_SEARCH = _capng.CAP_DAC_READ_SEARCH
CAP_FOWNER = _capng.CAP_FOWNER
CAP_FSETID = _capng.CAP_FSETID
CAP_KILL = _capng.CAP_KILL
CAP_SETGID = _capng.CAP_SETGID
CAP_SETUID = _capng.CAP_SETUID
CAP_SETPCAP = _capng.CAP_SETPCAP
CAP_LINUX_IMMUTABLE = _capng.CAP_LINUX_IMMUTABLE
CAP_NET_BIND_SERVICE = _capng.CAP_NET_BIND_SERVICE
CAP_NET_BROADCAST = _capng.CAP_NET_BROADCAST
CAP_NET_ADMIN = _capng.CAP_NET_ADMIN
CAP_NET_RAW = _capng.CAP_NET_RAW
CAP_IPC_LOCK = _capng.CAP_IPC_LOCK
CAP_IPC_OWNER = _capng.CAP_IPC_OWNER
CAP_SYS_MODULE = _capng.CAP_SYS_MODULE
CAP_SYS_RAWIO = _capng.CAP_SYS_RAWIO
CAP_SYS_CHROOT = _capng.CAP_SYS_CHROOT
CAP_SYS_PTRACE = _capng.CAP_SYS_PTRACE
CAP_SYS_PACCT = _capng.CAP_SYS_PACCT
CAP_SYS_ADMIN = _capng.CAP_SYS_ADMIN
CAP_SYS_BOOT = _capng.CAP_SYS_BOOT
CAP_SYS_NICE = _capng.CAP_SYS_NICE
CAP_SYS_RESOURCE = _capng.CAP_SYS_RESOURCE
CAP_SYS_TIME = _capng.CAP_SYS_TIME
CAP_SYS_TTY_CONFIG = _capng.CAP_SYS_TTY_CONFIG
CAP_MKNOD = _capng.CAP_MKNOD
CAP_LEASE = _capng.CAP_LEASE
CAP_AUDIT_WRITE = _capng.CAP_AUDIT_WRITE
CAP_AUDIT_CONTROL = _capng.CAP_AUDIT_CONTROL
CAP_SETFCAP = _capng.CAP_SETFCAP
CAP_MAC_OVERRIDE = _capng.CAP_MAC_OVERRIDE
CAP_MAC_ADMIN = _capng.CAP_MAC_ADMIN
CAP_SYSLOG = _capng.CAP_SYSLOG
CAP_WAKE_ALARM = _capng.CAP_WAKE_ALARM
CAP_BLOCK_SUSPEND = _capng.CAP_BLOCK_SUSPEND
CAP_AUDIT_READ = _capng.CAP_AUDIT_READ
CAP_PERFMON = _capng.CAP_PERFMON
CAP_BPF = _capng.CAP_BPF
CAP_CHECKPOINT_RESTORE = _capng.CAP_CHECKPOINT_RESTORE
CAP_LAST_CAP = _capng.CAP_LAST_CAP
CAPNG_DROP = _capng.CAPNG_DROP
CAPNG_ADD = _capng.CAPNG_ADD
CAPNG_EFFECTIVE = _capng.CAPNG_EFFECTIVE
CAPNG_PERMITTED = _capng.CAPNG_PERMITTED
CAPNG_INHERITABLE = _capng.CAPNG_INHERITABLE
CAPNG_BOUNDING_SET = _capng.CAPNG_BOUNDING_SET
CAPNG_AMBIENT = _capng.CAPNG_AMBIENT
CAPNG_SELECT_CAPS = _capng.CAPNG_SELECT_CAPS
CAPNG_SELECT_BOUNDS = _capng.CAPNG_SELECT_BOUNDS
CAPNG_SELECT_BOTH = _capng.CAPNG_SELECT_BOTH
CAPNG_SELECT_AMBIENT = _capng.CAPNG_SELECT_AMBIENT
CAPNG_SELECT_ALL = _capng.CAPNG_SELECT_ALL
CAPNG_FAIL = _capng.CAPNG_FAIL
CAPNG_NONE = _capng.CAPNG_NONE
CAPNG_PARTIAL = _capng.CAPNG_PARTIAL
CAPNG_FULL = _capng.CAPNG_FULL
CAPNG_PRINT_STDOUT = _capng.CAPNG_PRINT_STDOUT
CAPNG_PRINT_BUFFER = _capng.CAPNG_PRINT_BUFFER
CAPNG_NO_FLAG = _capng.CAPNG_NO_FLAG
CAPNG_DROP_SUPP_GRP = _capng.CAPNG_DROP_SUPP_GRP
CAPNG_CLEAR_BOUNDING = _capng.CAPNG_CLEAR_BOUNDING
CAPNG_INIT_SUPP_GRP = _capng.CAPNG_INIT_SUPP_GRP
CAPNG_CLEAR_AMBIENT = _capng.CAPNG_CLEAR_AMBIENT
CAPNG_UNSET_ROOTID = _capng.CAPNG_UNSET_ROOTID
CAPNG_SUPPORTS_AMBIENT = _capng.CAPNG_SUPPORTS_AMBIENT

def capng_clear(set: "capng_select_t") -> "void":
    return _capng.capng_clear(set)

def capng_fill(set: "capng_select_t") -> "void":
    return _capng.capng_fill(set)

def capng_setpid(pid: "int") -> "void":
    return _capng.capng_setpid(pid)

def capng_get_caps_process() -> "int":
    return _capng.capng_get_caps_process()

def capng_update(action: "capng_act_t", type: "capng_type_t", capability: "unsigned int") -> "int":
    return _capng.capng_update(action, type, capability)

def capng_updatev(action: "capng_act_t", type: "capng_type_t", capability: "unsigned int", capability1: "unsigned int"=0, capability2: "unsigned int"=0, capability3: "unsigned int"=0, capability4: "unsigned int"=0, capability5: "unsigned int"=0, capability6: "unsigned int"=0, capability7: "unsigned int"=0, capability8: "unsigned int"=0, capability9: "unsigned int"=0, capability10: "unsigned int"=0, capability11: "unsigned int"=0, capability12: "unsigned int"=0, capability13: "unsigned int"=0, capability14: "unsigned int"=0, capability15: "unsigned int"=0, capability16: "unsigned int"=0) -> "int":
    return _capng.capng_updatev(action, type, capability, capability1, capability2, capability3, capability4, capability5, capability6, capability7, capability8, capability9, capability10, capability11, capability12, capability13, capability14, capability15, capability16)

def capng_apply(set: "capng_select_t") -> "int":
    return _capng.capng_apply(set)

def capng_lock() -> "int":
    return _capng.capng_lock()

def capng_change_id(uid: "int", gid: "int", flag: "capng_flags_t") -> "int":
    return _capng.capng_change_id(uid, gid, flag)

def capng_get_rootid() -> "int":
    return _capng.capng_get_rootid()

def capng_set_rootid(rootid: "int") -> "int":
    return _capng.capng_set_rootid(rootid)

def capng_get_caps_fd(fd: "int") -> "int":
    return _capng.capng_get_caps_fd(fd)

def capng_apply_caps_fd(fd: "int") -> "int":
    return _capng.capng_apply_caps_fd(fd)

def capng_have_capabilities(set: "capng_select_t") -> "capng_results_t":
    return _capng.capng_have_capabilities(set)

def capng_have_permitted_capabilities() -> "capng_results_t":
    return _capng.capng_have_permitted_capabilities()

def capng_have_capability(which: "capng_type_t", capability: "unsigned int") -> "int":
    return _capng.capng_have_capability(which, capability)

def capng_print_caps_numeric(where: "capng_print_t", set: "capng_select_t") -> "char *":
    return _capng.capng_print_caps_numeric(where, set)

def capng_print_caps_text(where: "capng_print_t", which: "capng_type_t") -> "char *":
    return _capng.capng_print_caps_text(where, which)

def capng_name_to_capability(name: "char const *") -> "int":
    return _capng.capng_name_to_capability(name)

def capng_capability_to_name(capability: "unsigned int") -> "char const *":
    return _capng.capng_capability_to_name(capability)


