# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.1
#
# 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 _unittest_support
else:
    import _unittest_support

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__)


class TestErrorStruct(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    log_level = property(_unittest_support.TestErrorStruct_log_level_get, _unittest_support.TestErrorStruct_log_level_set)
    log_domain = property(_unittest_support.TestErrorStruct_log_domain_get, _unittest_support.TestErrorStruct_log_domain_set)
    msg = property(_unittest_support.TestErrorStruct_msg_get, _unittest_support.TestErrorStruct_msg_set)

    def __init__(self):
        _unittest_support.TestErrorStruct_swiginit(self, _unittest_support.new_TestErrorStruct())
    __swig_destroy__ = _unittest_support.delete_TestErrorStruct

# Register TestErrorStruct in _unittest_support:
_unittest_support.TestErrorStruct_swigregister(TestErrorStruct)

G_LOG_FLAG_RECURSION = _unittest_support.G_LOG_FLAG_RECURSION
G_LOG_FLAG_FATAL = _unittest_support.G_LOG_FLAG_FATAL
G_LOG_LEVEL_ERROR = _unittest_support.G_LOG_LEVEL_ERROR
G_LOG_LEVEL_CRITICAL = _unittest_support.G_LOG_LEVEL_CRITICAL
G_LOG_LEVEL_WARNING = _unittest_support.G_LOG_LEVEL_WARNING
G_LOG_LEVEL_MESSAGE = _unittest_support.G_LOG_LEVEL_MESSAGE
G_LOG_LEVEL_INFO = _unittest_support.G_LOG_LEVEL_INFO
G_LOG_LEVEL_DEBUG = _unittest_support.G_LOG_LEVEL_DEBUG
G_LOG_LEVEL_MASK = _unittest_support.G_LOG_LEVEL_MASK

def test_add_error(error: "TestErrorStruct") -> "void":
    return _unittest_support.test_add_error(error)

def test_clear_error_list() -> "void":
    return _unittest_support.test_clear_error_list()

def test_set_checked_handler(domain: "char const *", level: "GLogLevelFlags", data: "gpointer") -> "guint":
    return _unittest_support.test_set_checked_handler(domain, level, data)

def test_set_list_handler(domain: "char const *", level: "GLogLevelFlags", data: "gpointer") -> "guint":
    return _unittest_support.test_set_list_handler(domain, level, data)

def test_set_null_handler(domain: "char const *", level: "GLogLevelFlags", data: "gpointer") -> "guint":
    return _unittest_support.test_set_null_handler(domain, level, data)

def g_log_remove_handler(log_domain: "char const *", handler: "guint") -> "void":
    return _unittest_support.g_log_remove_handler(log_domain, handler)


