From: Evgeny Zajcev <lg.zevlg@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: user-ptr as image :data
Date: Fri, 15 Mar 2019 22:14:21 +0300 [thread overview]
Message-ID: <CAO=W_ZqNA4Fd_So9Z8=qFNUR=tT8z-99n=VS72F7dr82e=Ue-A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
I'm currently porting (https://github.com/zevlg/ffi-wand.el) nice wand-mode
from SXEmacs to GNU Emacs and I miss feature to specify image `:data' as
user-ptr object.
There is also no possibility to create DATA string in emacs-module, without
string interpretation, because there is only `make_string' method, which
expects given `str' pointer to be null-terminated UTF-8 string.
What is the best approach to create `:data` value for image using user-ptr?
Thanks
--
lg
[-- Attachment #2: Type: text/html, Size: 776 bytes --]
next reply other threads:[~2019-03-15 19:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-15 19:14 Evgeny Zajcev [this message]
2019-03-15 19:41 ` user-ptr as image :data Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2019-03-15 20:28 Evgeny Zajcev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO=W_ZqNA4Fd_So9Z8=qFNUR=tT8z-99n=VS72F7dr82e=Ue-A@mail.gmail.com' \
--to=lg.zevlg@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).