Server IP : 111.118.215.189 / Your IP : 3.136.20.207 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/net/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/net/dbus.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'xml) #@46 The bus name used to talk to the bus itself. (defconst dbus-service-dbus "org.freedesktop.DBus" (#$ . 566)) #@49 The object path used to talk to the bus itself. (defconst dbus-path-dbus "/org/freedesktop/DBus" (#$ . 680)) #@60 The interface exported by the service `dbus-service-dbus'. (defconst dbus-interface-dbus "org.freedesktop.DBus" (#$ . 795)) #@125 The interface for peer objects. See URL `http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-peer'. (defconst dbus-interface-peer (concat dbus-interface-dbus ".Peer") (#$ . 926)) #@154 The interface supported by introspectable objects. See URL `http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-introspectable'. (defconst dbus-interface-introspectable (concat dbus-interface-dbus ".Introspectable") (#$ . 1136)) #@135 The interface for property objects. See URL `http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties'. (defconst dbus-interface-properties (concat dbus-interface-dbus ".Properties") (#$ . 1396)) #@132 The object manager interface. See URL `http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager'. (defconst dbus-interface-objectmanager (concat dbus-interface-dbus ".ObjectManager") (#$ . 1629)) #@39 The well known service name of Emacs. (defconst dbus-service-emacs "org.gnu.Emacs" (#$ . 1864)) #@142 The object path namespace used by Emacs. All object paths provided by the service `dbus-service-emacs' shall be subdirectories of this path. (defconst dbus-path-emacs "/org/gnu/Emacs" (#$ . 1967)) #@40 The interface namespace used by Emacs. (defconst dbus-interface-emacs "org.gnu.Emacs" (#$ . 2170)) #@132 Execute BODY; signal D-Bus error when `dbus-debug' is non-nil. Otherwise, return result of last form in BODY, or all other errors. (defalias 'dbus-ignore-errors '(macro . #[(&rest body) "\301\302\303B\304BBB\207" [body condition-case err progn ((dbus-error (when dbus-debug (signal (car err) (cdr err)))))] 4 (#$ . 2276)])) (byte-code "\302\303\304\305#\210\302\303\306\307#\210\310\311\312\"\210\313\314\315\316#\210\317\316\211\203= @\314N\2036 \315N\2046 \302\315\314N#\210 A\211\204 *\320\314\315\321#\207" [prop --dolist-tail-- put dbus-ignore-errors lisp-indent-function 0 edebug-form-spec t font-lock-add-keywords emacs-lisp-mode ("\\<dbus-ignore-errors\\>") defvaralias dbus-event-error-hooks dbus-event-error-functions nil (saved-value saved-variable-comment) make-obsolete-variable "24.3"] 6) #@192 Functions to be called when a D-Bus error happens in the event handler. Every function must accept two arguments, the event and the error variable caught in `condition-case' by `dbus-error'. (defvar dbus-event-error-functions nil (#$ . 3097)) #@304 Hash table for temporary storing arguments of reply messages. A key in this hash table is a list (:serial BUS SERIAL), like in `dbus-registered-objects-table'. BUS is either a Lisp symbol, `:system' or `:session', or a string denoting the bus address. SERIAL is the serial number of the reply message. (defvar dbus-return-values-table (make-hash-table :test 'equal) (#$ . 3347)) #@195 Handler for reply messages of asynchronous D-Bus message calls. It calls the function stored in `dbus-registered-objects-table'. The result will be made available in `dbus-return-values-table'. (defalias 'dbus-call-method-handler #[(&rest args) "\303\304\305!\306!E G\307U\203 @\202 \n#\207" [last-input-event args dbus-return-values-table puthash :serial dbus-event-bus-name dbus-event-serial-number 1] 5 (#$ . 3734)]) #@2332 Call METHOD on the D-Bus BUS. BUS is either a Lisp symbol, `:system' or `:session', or a string denoting the bus address. SERVICE is the D-Bus service name to be used. PATH is the D-Bus object path SERVICE is registered at. INTERFACE is an interface offered by SERVICE. It must provide METHOD. If the parameter `:timeout' is given, the following integer TIMEOUT specifies the maximum number of milliseconds the method call must return. The default value is 25,000. If the method call doesn't return in time, a D-Bus error is raised. All other arguments ARGS are passed to METHOD as arguments. They are converted into D-Bus types via the following rules: t and nil => DBUS_TYPE_BOOLEAN number => DBUS_TYPE_UINT32 integer => DBUS_TYPE_INT32 float => DBUS_TYPE_DOUBLE string => DBUS_TYPE_STRING list => DBUS_TYPE_ARRAY All arguments can be preceded by a type symbol. For details about type symbols, see Info node `(dbus)Type Conversion'. `dbus-call-method' returns the resulting values of METHOD as a list of Lisp objects. The type conversion happens the other direction as for input arguments. It follows the mapping rules: DBUS_TYPE_BOOLEAN => t or nil DBUS_TYPE_BYTE => number DBUS_TYPE_UINT16 => number DBUS_TYPE_INT16 => integer DBUS_TYPE_UINT32 => number or float DBUS_TYPE_UNIX_FD => number or float DBUS_TYPE_INT32 => integer or float DBUS_TYPE_UINT64 => number or float DBUS_TYPE_INT64 => integer or float DBUS_TYPE_DOUBLE => float DBUS_TYPE_STRING => string DBUS_TYPE_OBJECT_PATH => string DBUS_TYPE_SIGNATURE => string DBUS_TYPE_ARRAY => list DBUS_TYPE_VARIANT => list DBUS_TYPE_STRUCT => list DBUS_TYPE_DICT_ENTRY => list Example: (dbus-call-method :session "org.gnome.seahorse" "/org/gnome/seahorse/keys/openpgp" "org.gnome.seahorse.Keys" "GetKeyField" "openpgp:657984B8C7A966DD" "simple-name") => (t ("Philip R. Zimmermann")) If the result of the METHOD call is just one value, the converted Lisp object is returned instead of a list containing this single Lisp object. (dbus-call-method :system "org.freedesktop.Hal" "/org/freedesktop/Hal/devices/computer" "org.freedesktop.Hal.Device" "GetPropertyString" "system.kernel.machine") => "i686" (defalias 'dbus-call-method #[(bus service path interface method &rest args) "\306>\204 ;\204 \307\310\311D\"\210 ;\204 \307\310\312 D\"\210\n;\204* \307\310\312\nD\"\210;\2046 \307\310\312D\"\210\f;\204B \307\310\312\fD\"\210\313 \314\"\315\316 \n\f\317 & \320\321\215\211\320=\204e \210)\322\"\323\"\210*\207" [bus service path interface method args (:system :session) signal wrong-type-argument keywordp stringp plist-get :timeout apply dbus-message-internal dbus-call-method-handler #1=#:timeout (byte-code "\306\203 \307\245\202\f \310\311\312#\211\nB\313\216\314\f\315#\315=\205@ \311\316\311\211\317#)\211\203<