aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbusbind.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * dbusbind.c (Vdbus_registered_objects_table): Renamed fromMichael Albinus2009-11-131-43/+44
| | | | | | | Vdbus_registered_functions_table, because it contains also properties. Fix docstring. (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
* * xterm.c (syms_of_xterm):Dan Nicolaescu2009-11-061-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
* (xd_retrieve_arg): Handle DBUS_TYPE_INTnn andAndreas Schwab2009-10-241-5/+22
| | | | DBUS_TYPE_UINTnn separately to get proper sign extension.
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* (dbus-method-return-internal, dbus-method-error-internal): Use long format ↵Adrian Robert2009-10-131-2/+2
| | | | in printf, and cast argument.
* * dbusbind.c (Fdbus_call_method)Michael Albinus2009-08-251-2/+2
| | | | | (Fdbus_call_method_asynchronously): Use English numeric format for timeout values in doc string.
* * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It wasMichael Albinus2009-08-221-12/+2
| | | | | intended as hotfix only. (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
* * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.Michael Albinus2009-08-201-6/+33
| | | | | | (xd_add_watch, xd_remove_watch): Use it. Print debug messages. (xd_initialize, xd_pending_messages): Check, whether $DBUS_SESSION_BUS_ADDRESS is set.
* * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus): NewMichael Albinus2009-08-181-6/+82
| | | | | functions. (xd_initialize): Revert change from 2009-08-16.
* * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.Ken Raeburn2009-08-171-5/+7
| | | | | | | (XFLOAT_INIT): New macro for storing a float value. * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT. * fns.c (sxhash): Copy out the value of a float in order to examine its bytes. * dbusbind.c (xd_append_arg): Likewise.
* * dbusbind.c (Fdbus_call_method_asynchronously): Allow nil HANDLER.Michael Albinus2009-08-161-12/+29
|
* * dbusbind.c (xd_initialize): Add connection file descriptor toMichael Albinus2009-08-161-0/+6
| | | | | input_wait_mask, in order to let select() detect, whether a new message has been arrived.
* * dbusbind.c (xd_get_dispatch_status, xd_pending_messages): New functions.Michael Albinus2009-08-151-0/+35
|
* * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)Michael Albinus2009-07-081-0/+12
| | | | | (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of error flag.
* * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into functionMichael Albinus2009-06-281-27/+35
| | | | | | | xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile for hours, when optimzation is enabled. (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize) (xd_read_message): Make them static.
* * dbusbind.c (Fdbus_register_signal):Juanma Barranquero2009-01-181-1/+1
| | | | | * process.c (conv_sockaddr_to_lisp): * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* * dbusbind.c (xd_in_read_queued_messages): New variable.Michael Albinus2008-10-241-53/+66
| | | | | | | | (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error. (xd_read_queued_messages): Catch Qdbus_error from the macros. (all): Replace xsignal1, xsignal2, xsignal3 by the respective macro. (Bug#1186).
* * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbolsMichael Albinus2008-10-191-3/+6
| | | | in arrays.
* * dbusbind.c (Fdbus_call_method): Unbreak usage line.Magnus Henoch2008-10-161-6/+2
| | | | | (Fdbus_call_method_asynchronously): Ditto. This change makes C-h f display the argument list.
* * dbusbind.c (xd_signature): Use strcat instead of sprintf.Michael Albinus2008-09-301-2/+2
|
* * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy andMichael Albinus2008-08-281-5/+5
| | | | | snprintf, respectively. (xd_append_arg): Convert strings with Fstring_make_unibyte.
* * dbusbind.c (xd_read_message): Handle D-Bus error messages.Michael Albinus2008-08-011-17/+20
|
* * dbusbind.c (Fdbus_call_method_asynchronously)Michael Albinus2008-07-311-56/+372
| | | | | | (Fdbus_method_error_internal): New defuns. (xd_read_message): Handle also reply messages. (Vdbus_registered_functions_table): Extend docstring.
* * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat insteadMichael Albinus2008-07-211-3/+11
| | | | only sprintf.
* * dbusbind.c (Fdbus_register_signal): Allow also signal argumentsMichael Albinus2008-07-131-8/+39
| | | | for filtering.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* * dbusbind.c (dbus-get-unique-name): Remove extra copying of name string.Michael Albinus2008-04-131-4/+4
|
* * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.Michael Albinus2008-03-301-15/+29
| | | | | (Fdbus_call_method): New parameter TIMEOUT. (dbus-send-signal): Optimize UNGCPRO call.
* * dbusbind.c (xd_read_message): Removed extra copying of messageMichael Albinus2008-03-231-16/+14
| | | | strings. Check for NULL `interface' or `member'.
* * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.Michael Albinus2008-01-251-1/+5
|
* * dbusbind.el (Fdbus_method_return_internal): Renamed fromMichael Albinus2008-01-211-81/+53
| | | | | | | Fdbus_method_return. (Fdbus_unregister_object): Moved to dbus.el. (Fdbus_call_method, Fdbus_method_return_internal) (Fdbus_send_signal): Debug messages improved.
* * dbusbind.c (Fdbus_method_return): New function.Michael Albinus2008-01-041-8/+100
| | | | | (xd_read_message): Add the serial number to the event. (Fdbus_register_method): Activate the function.
* * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.Michael Albinus2008-01-031-65/+126
| | | | | | | | (xd_signature, xd_append_arg): Handle element type detection for empty arrays. (Fdbus_call_method, Fdbus_send_signal): Undo type casting for SDATA () calls; this must be solved more general. (Fdbus_register_signal): Use SBYTES instead of strlen.
* * dbusbind.c (Fdbus_call_method): Handle the case of no returnedMagnus Henoch2008-01-031-9/+10
| | | | arguments.
* * dbusbind.c (xd_append_arg): Use unsigned char instead ofMagnus Henoch2008-01-031-2/+2
| | | | unsigned int for byte values (necessary for big-endian platform).
* * dbusbind.c (xd_read_message): Use non-static input_event struct.Michael Albinus2007-12-311-1/+1
|
* * dbusbind.c (xd_signature): Signature of variant is just "v".Magnus Henoch2007-12-311-1/+1
|
* *** empty log message ***Michael Albinus2007-12-301-1/+1
|
* * dbusbind.c: Fix several errors and compiler warnings. ReportedMichael Albinus2007-12-301-116/+229
| | | | | | | | | | | | | | | | | | | by Tom Tromey <tromey@redhat.com> (XD_ERROR, XD_DEBUG_MESSAGE) (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)". (xd_append_arg): Part for basic D-Bus types rewitten. (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not appropriate. (xd_read_message): Return Qnil. Don't signal an error; it is not useful during event reading. (Fdbus_register_signal): Signal an error if the check for FUNCTIONP fails. (Fdbus_register_method): New function. The implementation is not complete, the call of the function signals an error therefore. (Fdbus_unregister_object): New function, renamed from Fdbus_unregister_signal. The initial check signals an error, if it the objct is not well formed.
* *** empty log message ***Michael Albinus2007-12-221-1/+1
|
* * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,Michael Albinus2007-12-221-19/+56
| | | | | | | | DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64, DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE. Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit as number. (Fdbus_call_method): Fix docstring.
* * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):Michael Albinus2007-12-211-131/+302
| | | | | | | | | | | | | New macros. (XD_SYMBOL_TO_DBUS_TYPE): Renamed from XD_LISP_SYMBOL_TO_DBUS_TYPE. (XD_OBJECT_TO_DBUS_TYPE): Renamed from XD_LISP_OBJECT_TO_DBUS_TYPE. Simplify. (xd_signature): New function. (xd_append_arg): Compute also signatures. Major rewrite. (xd_retrieve_arg): Make debug messages friendly. (Fdbus_call_method, Fdbus_send_signal): Extend docstring. Check for signatures of arguments.
* * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)Michael Albinus2007-12-191-45/+257
| | | | | | | | | | | | | | (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32) (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64) (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path) (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant) (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols. (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro. (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types. (xd_retrieve_value): Removed. Functionality included in ... (xd_append_arg): New function. (Fdbus_call_method, Fdbus_send_signal): Apply it.
* * dbusbind.c (top): Include <stdio.h>.Michael Albinus2007-12-161-53/+89
| | | | | | | | | | | | | (Fdbus_call_method, Fdbus_send_signal): Apply type cast in dbus_message_new_method_call and dbus_message_new_signal. (Fdbus_register_signal): Rename unique_name to uname. Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of non-existing unique name. Fix typos in matching rule. Return an object which is useful in Fdbus_unregister_signal. (Fdbus_unregister_signal): Reimplementation, in order to remove only the corresponding entry. (Vdbus_registered_functions_table): Change the order of entries. Apply these changes in xd_read_message and Fdbus_register_signal.
* * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)Michael Albinus2007-12-141-14/+16
| | | | | | | | (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use `unsigned int' instead of `uint'. (xd_read_message, Fdbus_register_signal): Split expressions into multiple lines before operators "&&" and "||", according to the GNU Coding Standards.
* * dbusbind.c (xd_read_message): Generate an event for everyMichael Albinus2007-12-081-53/+74
| | | | | | | | registered handler. There might be several handlers registered for the same signal. (Fdbus_register_signal): Don't overwrite a registration for the same signal. Add a new registration if handlers are different. (Vdbus_registered_functions_table): Rework doc string.
* * dbusbind.c (Fdbus_get_unique_name, xd_read_message)Michael Albinus2007-12-071-62/+73
| | | | | | | | | | | (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths. (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal): Unify argument lists. (xd_read_message, Fdbus_register_signal) Reorder and extend event arguments and hash table keys. Use unique name for service. (Fdbus_unregister_signal): Remove checks. (Vdbus_registered_functions_table): Fix doc string.
* * dbusbind.c (xd_read_message): Return value is a Lisp_Object.Michael Albinus2007-12-051-9/+13
| | | | | | | Move check for Vdbus_registered_functions_table to xd_read_queued_messages. (xd_read_queued_messages): Protect xd_read_message calls by internal_condition_case_1.
* Add arch taglineMiles Bader2007-12-041-0/+3
|