a
nb @ s d dl mZ edk redes(dev r6ddlmZ nd dlZzd dlZ W n e
yd d dl Z Y n0 dd Zd
d Zdd
Z
dd ZG dd deZejZejZejZejZejZejZejZejZejZejZejZejZejZejZejZej Z ej!Z!ej"Z"ej#Z#ej$Z$ej%Z%ej&Z&ej'Z'ej(Z(ej)Z)ej*Z*ej+Z+ej,Z,ej-Z-ej.Z.ej/Z/ej0Z0ej1Z1ej2Z2ej3Z3ej4Z4ej5Z5ej6Z6ej7Z7ej8Z8ej9Z9ej:Z:ej;Z;ejZ>ej?Z?ej@Z@ejAZAejBZBejCZCejDZDejEZEejFZFejGZGejHZHejIZIejJZJejKZKejLZLejMZMejNZNejOZOejPZPejQZQejRZRejSZSdddddZTdddddZUdddddZVddddZWd d!d"dd#d$d%ZXdRd d!d"d"d"d"d"d"d"d"d"d"d"d"d"d"d"d"d"dd&d'd(ZYdddd)d*ZZddd+d,Z[ddd-dd.d/d0Z\ddd1d2Z]ddd3d4d5Z^ddd6d7d8Z_ddd6d9d:Z`dd;ddd?Zbd!d"dd@dAdBZcdCddDdEdFdGZddCd!dDdHdIdJZedKddLdMdNZfd"dKdOdPdQZgdS )S )version_info) r zPython 2.7 or later required. )_capngNc C sB zd| j }W n tjy* d}Y n0 d| jj| jj|f S )Nz proxy of z<%s.%s; %s >)this__repr____builtin__ Exception __class__
__module____name__)selfZstrthis r +/usr/lib64/python3.9/site-packages/capng.py
_swig_repr s
r c s fdd}|S )Nc sh |dkr| j | nN|dkr, | || n8t| |rXttt| |trX | || ntd| d S )NZthisownr z(You cannot add instance attributes to %s)r Zownhasattr
isinstancegetattrtypepropertyAttributeError)r namevaluesetr r set_instance_attr s zE_swig_setattr_nondynamic_instance_variable..set_instance_attrr )r r r r r *_swig_setattr_nondynamic_instance_variable s r c s fdd}|S )Nc s8 t | |r(tt| |ts( | || ntd| d S )Nz%You cannot add class attributes to %s)r r r r r )clsr r r r r set_class_attr, s z?_swig_setattr_nondynamic_class_variable..set_class_attrr )r r! r r r '_swig_setattr_nondynamic_class_variable+ s r" c s fdd}|S )zlClass decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclassc s | j | j| j S N)r __bases____dict__copy)r metaclassr r wrapper6 s z$_swig_add_metaclass..wrapperr )r( r) r r' r _swig_add_metaclass4 s r* c @ s e Zd ZdZeejZdS )_SwigNonDynamicMetazKMeta class to enforce nondynamic attributes (no new attributes) for a classN)r r __qualname____doc__r" r __setattr__r r r r r+ ; s r+ Zcapng_select_tZvoid)r returnc C s
t | S r# )r capng_clearr r r r r0 s r0 c C s
t | S r# )r
capng_fillr r r r r1 s r1 int)pidr/ c C s
t | S r# )r capng_setpid)r3 r r r r4 s r4 )r/ c C s t S r# )r capng_get_caps_processr r r r r5 s r5 Zcapng_act_tZcapng_type_tzunsigned int)actionr
capabilityr/ c C s t | ||S r# )r capng_update)r6 r r7 r r r r8 s r8 )r6 r r7 capability1capability2capability3capability4capability5capability6capability7capability8capability9capability10capability11capability12capability13capability14capability15capability16r/ c C s. t | ||||||||| |
|||
|||||S r# )r
capng_updatev)r6 r r7 r9 r: r; r<