
    k7i/                          S r SSKJrJrJr  SSKJrJr  / SQr " S S5      r	 " S S\5      r
\
" 5       r " S	 S
\5      r " S S\5      r " S S5      rg)zcMessages for talking to the DBus daemon itself

Generated by jeepney.bindgen and modified by hand.
   )MessageMessageTypeHeaderFields)MessageGeneratornew_method_call)DBusNameFlagsDBusmessage_bus
MonitoringStats	MatchRulec                        \ rS rSrSrSrSrSrg)r      r          N)__name__
__module____qualname____firstlineno__allow_replacementreplace_existingdo_not_queue__static_attributes__r       N/home/james-whalen/.local/lib/python3.13/site-packages/jeepney/bus_messages.pyr   r      s    Lr   r   c                      ^  \ rS rSrSrSr  SU 4S jjrS rSS jrS r	S r
S	 rS
 rS rS rS rS rS rS rS rS rS rS rS rS rS rSrU =r$ )r	      z(Messages to talk to the message bus
    org.freedesktop.DBusc                     > [         TU ]  XS9  g N)object_pathbus_namesuper__init__selfr"   r#   	__class__s      r   r&   DBus.__init__       [Dr   c                     [        U S5      $ )NHellor   r(   s    r   r-   
DBus.Hello       tW--r   c                      [        U SSX45      $ )NRequestNamesur.   )r(   nameflagss      r   r3   DBus.RequestName"   s    t]D4-HHr   c                      [        U SSU45      $ )NReleaseNamesr.   r(   r5   s     r   r9   DBus.ReleaseName%   s    t]C$AAr   c                 "    [        U SSUS45      $ )NStartServiceByNamer4       r.   r;   s     r   r>   DBus.StartServiceByName(   s    t%94 $ay* 	*r   c                      [        U SSU45      $ )NUpdateActivationEnvironmentza{ss}r.   )r(   envs     r   rB    DBus.UpdateActivationEnvironment,   s    t%BG #v' 	'r   c                      [        U SSU45      $ )NNameHasOwnerr:   r.   r;   s     r   rF   DBus.NameHasOwner0       t^S4'BBr   c                     [        U S5      $ )N	ListNamesr.   r/   s    r   rJ   DBus.ListNames3   s    t[11r   c                     [        U S5      $ )NListActivatableNamesr.   r/   s    r   rM   DBus.ListActivatableNames6   s    t%;<<r   c                 j    [        U[        5      (       a  UR                  5       n[        U SSU45      $ )z4*rule* can be a str or a :class:`MatchRule` instanceAddMatchr:   
isinstancer   	serialiser   r(   rules     r   rP   DBus.AddMatch9   s.    dI&&>>#DtZtg>>r   c                 j    [        U[        5      (       a  UR                  5       n[        U SSU45      $ )NRemoveMatchr:   rQ   rT   s     r   rX   DBus.RemoveMatch?   s.    dI&&>>#Dt]C$AAr   c                      [        U SSU45      $ )NGetNameOwnerr:   r.   r;   s     r   r[   DBus.GetNameOwnerD   rH   r   c                      [        U SSU45      $ )NListQueuedOwnersr:   r.   r;   s     r   r^   DBus.ListQueuedOwnersG   s    t%7tgFFr   c                      [        U SSU45      $ )NGetConnectionUnixUserr:   r.   r;   s     r   ra   DBus.GetConnectionUnixUserJ   s    t%<cD7KKr   c                      [        U SSU45      $ )NGetConnectionUnixProcessIDr:   r.   r;   s     r   rd   DBus.GetConnectionUnixProcessIDM   s    t%A3PPr   c                      [        U SSU45      $ )NGetAdtAuditSessionDatar:   r.   r;   s     r   rg   DBus.GetAdtAuditSessionDataP   s    t%=sTGLLr   c                      [        U SSU45      $ )N#GetConnectionSELinuxSecurityContextr:   r.   r;   s     r   rj   (DBus.GetConnectionSELinuxSecurityContextS   s    t%JC $w( 	(r   c                     [        U S5      $ )NReloadConfigr.   r/   s    r   rm   DBus.ReloadConfigW   s    t^44r   c                     [        U S5      $ )NGetIdr.   r/   s    r   rp   
DBus.GetIdZ   r1   r   c                      [        U SSU45      $ )NGetConnectionCredentialsr:   r.   r;   s     r   rs   DBus.GetConnectionCredentials]   s    t%?tgNNr   r   z/org/freedesktop/DBusr   )r?   )r   r   r   r   __doc__	interfacer&   r-   r3   r9   r>   rB   rF   rJ   rM   rP   rX   r[   r^   ra   rd   rg   rj   rm   rp   rs   r   __classcell__r)   s   @r   r	   r	      s    &I#:0E.IB*'C2=?B
CGLQM(5.O Or   r	   c                   :   ^  \ rS rSrSr  SU 4S jjrS rSrU =r$ )r   b   zorg.freedesktop.DBus.Monitoringc                     > [         TU ]  XS9  g r!   r$   r'   s      r   r&   Monitoring.__init__e   r+   r   c                 "    [        U SSUS45      $ )z:Convert this connection to a monitor connection (advanced)BecomeMonitorasur?   r.   )r(   ruless     r   r   Monitoring.BecomeMonitori   s    t_eeQZHHr   r   ru   )	r   r   r   r   rw   r&   r   r   rx   ry   s   @r   r   r   b   s     1I#:0EI Ir   r   c                   F   ^  \ rS rSrSr  SU 4S jjrS rS rS rSr	U =r
$ )	r   m   z org.freedesktop.DBus.Debug.Statsc                     > [         TU ]  XS9  g r!   r$   r'   s      r   r&   Stats.__init__p   r+   r   c                     [        U S5      $ )NGetStatsr.   r/   s    r   r   Stats.GetStatst   s    tZ00r   c                      [        U SSU45      $ )NGetConnectionStatsr:   r.   )r(   arg0s     r   r   Stats.GetConnectionStatsw   s    t%93 $w( 	(r   c                     [        U S5      $ )NGetAllMatchRulesr.   r/   s    r   r   Stats.GetAllMatchRules{   s    t%788r   r   ru   )r   r   r   r   rw   r&   r   r   r   r   rx   ry   s   @r   r   r   m   s(    2I#:0E1(9 9r   r   c            	       j    \ rS rSrSrSSSSSSSSS.S jrSS\S\4S	 jjrS
\4S jr	S\
S
\4S jrSrg)r      a  Construct a match rule to subscribe to DBus messages.

e.g.::

    mr = MatchRule(
        interface='org.freedesktop.DBus',
        member='NameOwnerChanged',
        type='signal'
    )
    msg = message_bus.AddMatch(mr)
    # Send this message to subscribe to the signal
NF)typesenderrw   memberpathpath_namespacedestination	eavesdropc                    [        U[        5      (       a	  [        U   nXl        UUUUUS.n	U	R	                  5        V
Vs0 s H  u  pUc  M
  X_M     snn
U l        X`l        Xl        0 U l        g s  snn
f )N)r   rw   r   r   r   )	rR   strr   message_typeitemsheader_fieldsr   r   arg_conditions)r(   r   r   rw   r   r   r   r   r   fieldskvs               r   r&   MatchRule.__init__   s}     dC  t$D "&
  &||~
-Va!DAD~
 -" 
s    	A0A0argnovaluec                     US;  a  [        SR                  U5      5      eUS:X  a  US:w  a  [        S5      eX#4U R                  U'   g)z`Add a condition for a particular argument

argno: int, 0-63
kind: 'string', 'path', 'namespace'
>   r   string	namespacez	kind={!r}r   r?   z$argno must be 0 for kind='namespace'N)
ValueErrorformatr   )r(   r   r   kinds       r   add_arg_conditionMatchRule.add_arg_condition   sO     66[//566;5A:CDD&+]E"r   returnc                    [        U R                  R                  5       5      nU R                  (       a'  UR	                  SU R                  R
                  45        U R                  (       a  UR	                  SU R                  45        U R                  (       a  UR	                  S5        U R                  R                  5        H(  u  nu  p4US:X  a  SnUR	                  SU U 3U45        M*     SR                  S U 5       5      $ )	zAConvert to a string to use in an AddMatch call to the message busr   r   )r   truer    arg,c              3   h   #    U  H(  u  pS R                  XR                  SS5      5      v   M*     g7f)z{}='{}''z'\''N)r   replace).0r   r   s      r   	<genexpr>&MatchRule.serialise.<locals>.<genexpr>   s.      
GLVaIQ		#w 788us   02)
listr   r   r   appendr5   r   r   r   join)r(   pairsr   valr   s        r   rS   MatchRule.serialise   s    T''--/0LL&$"3"3"8"89:LL*D,?,?@A>>LL./"&"5"5";";"=E;CxLLCwtf-s34 #> xx 
GL
 
 	
r   msgc                    UR                   nU R                  b  UR                  U R                  :w  a  gU R                  R                  5        H.  u  p4UR                  R                  [        U   S5      U:w  d  M.    g   U R                  bd  UR                  R                  [        R                  S5      nU R                  R                  S5      nXV:X  d  UR                  US-   5      (       d  gU R                  R                  5        H  u  nu  pHU[        UR                  5      :  a    gUR                  U   n	[        U	[        5      (       d    gUS:X  a	  X:w  a    gMX  US:X  ae  X:X  d^  UR!                  S5      (       a  U	R                  U5      (       d0  U	R!                  S5      (       a  UR                  U	5      (       d    gM  M  M  US:X  d  M  X:X  a  M  U	R                  US-   5      (       a  M    g   g	)
z%Returns True if msg matches this ruleNF /r   r   r   .T)headerr   r   r   r   getr   r   r   rstrip
startswithr   lenbodyrR   r   endswith)
r(   r   hfieldexpectedr   path_nsr   r   r   s
             r   matchesMatchRule.matches   s   JJ)q~~ARAR/R#11779OExx||L/6(B  : *88<< 1 148D))005G_3)G)G'+':':'@'@'B#E#HCHH%((5/Cc3''x?  #_ ))#..3>>(3K3KS))h.A.A#.F.F  /G 4L %
 $_~~hn55 + (C. r   )r   r   r   r   r   )r   )r   r   r   r   rv   r&   intr   r   rS   r   boolr   r   r   r   r   r   r      sS      $DD4T !(
3s 
33 
3
3 
6'7 't 'r   r   N)rv   	low_levelr   r   r   wrappersr   r   __all__r   r	   r
   r   r   r   r   r   r   <module>r      si    : 9 7 
HO HOT f	I! 	I9 9$o or   