all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Module support: No environment in pointer release function
@ 2017-02-03  2:55 Elias Mårtenson
  2017-02-06  5:33 ` Paul Eggert
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Elias Mårtenson @ 2017-02-03  2:55 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

I'm currently building an Emacs module to provide access to GSSAPI. In it,
I have to use the make_user_ptr() function in a few places. When creating a
user_ptr, the function accepts a pointer to a function which will be called
when the object is GC'ed.

The problem is that the free function is only called with a single
argument; the pointer itself. In my case, the underlying GSSAPI function
that releases the object may return some diagnostics, and I would like to
be able to call the Elisp function ‘warn’ with a message describing what
happened.

I think that the callback should accept 3 arguments instead of 1. In
addition to the pointer itself, the ‘emacs_env’ pointer is needed. An
arbitrary ‘void *data’ pointer would be useful too.

Regards,
Elias

[-- Attachment #2: Type: text/html, Size: 883 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-02-27  4:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-03  2:55 Module support: No environment in pointer release function Elias Mårtenson
2017-02-06  5:33 ` Paul Eggert
2017-02-07  3:16   ` Elias Mårtenson
2017-02-07  6:41     ` Paul Eggert
2017-02-07 12:54     ` Philipp Stephani
2017-02-07 12:51   ` Philipp Stephani
2017-02-07 12:50 ` Philipp Stephani
2017-02-08 17:03 ` Andreas Politz
2017-02-10  5:21   ` Elias Mårtenson
2017-02-10  5:22     ` Elias Mårtenson
2017-02-10  9:27     ` Andreas Politz
2017-02-26 16:23     ` Philipp Stephani
2017-02-27  4:31       ` Elias Mårtenson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.