From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: user-ptr as image :data Date: Fri, 15 Mar 2019 22:14:21 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004c57c0058426d953" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="262966"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 15 20:16:08 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4sJK-0016F0-51 for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 20:16:06 +0100 Original-Received: from localhost ([127.0.0.1]:60206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4sJI-0001AB-Vm for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 15:16:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4sHs-0000ZU-ME for emacs-devel@gnu.org; Fri, 15 Mar 2019 15:14:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4sHr-0001E9-Us for emacs-devel@gnu.org; Fri, 15 Mar 2019 15:14:36 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:42549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4sHr-0001DZ-I4 for emacs-devel@gnu.org; Fri, 15 Mar 2019 15:14:35 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id v22so3099225lje.9 for ; Fri, 15 Mar 2019 12:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4hI/lu3BE+wAqgDBz0QBQsaLtzRMjdrGiDSmTk//aFU=; b=fLOLHH87LO7AKI/Y0OASZZGfAcInOSSLkomyzkOMm49JvO65V8RsberyPcJIMcyVlJ FbRPk5nJbdLVwLw7lYV5HOJMYq30+K3ZpVtFIRky+aZ+y0AhqfZ5886Y58cMbeQbNQT2 MOIfnRTcR+MunM3P4kAOPrwP93Lpx5iSpZ/iuMj4ovEropUcllCp7y7ns/Vgft+84hbp y45x8ugEYLJSsdf6MwehoPTVmqMSNygmpayJXlWdrW75Dwbj/YKMm5zLeSEvnWRz3s5Q PqtNHzbw8nWe80Shj6biJKLEr+x+WCoTr9fy7JxHYsXoy8fhNIGo1yYq3zYb9l3E+X0l WQQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4hI/lu3BE+wAqgDBz0QBQsaLtzRMjdrGiDSmTk//aFU=; b=MyduVoQ52yVzv2rqmod+V93T5l+wwwrK3R/NE+psLblzCOnOxjoaNh+FunFW2F1b96 +qQuSijzvTC9r8T+M31UINIWqE+U/Ral9DBQLF5RERktaIHCPWlTOFlUBt7Hj4uVhSLZ Znpu1xHVftfmQfro7KyOFrgp3dTsp+RdZbQ6fc80fTDb7gsVOcY5cpohW2PijDJJQal3 2NIjiJQFKUTGLKGO6hQ96TCjbV3dX/6GUNnWyWbHGdJBs3Pd04G300f6cCRjN3P7PLDK SYEAh+JGZp7C9KQQsnEgKSVjrLnWqiJx2fAmK3Du1tb+rvbiKQVuzxYJlML5zC8i0FHo hKBA== X-Gm-Message-State: APjAAAUVTpck6m9EI3nxEJ6sWz4oVkBCr7pASDJFDahfanyhrI6U+HNg zjFFhbcOtKo97DhbCYnfcWiYlBAvvdTRXwNmq//AQ4nZ X-Google-Smtp-Source: APXvYqxacdpONbrg9nNcJ6UzazVL65spl2aWxS7ncJyiekaLl6SQM7jgaf2u15evr2offVQ74VOq9flhsH5hBco1n1U= X-Received: by 2002:a2e:8003:: with SMTP id j3mr3075895ljg.17.1552677272834; Fri, 15 Mar 2019 12:14:32 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234183 Archived-At: --0000000000004c57c0058426d953 Content-Type: text/plain; charset="UTF-8" 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 --0000000000004c57c0058426d953 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm currently porting (https://github.com/zevlg/ffi-wand.el= ) nice wand-mode from SXEmacs to GNU Emacs=C2=A0 and I miss feature to spec= ify image `:data' as user-ptr object.

<= div>There is also no possibility to create DATA string in emacs-module, wit= hout string interpretation, because there is only `make_string' method,= which expects given `str' pointer to be null-terminated UTF-8 string.<= br clear=3D"all">

What is the bes= t approach to create `:data` value for image using user-ptr?

=
Thanks

--
lg
--0000000000004c57c0058426d953--