|
From: | Stefan Monnier |
Subject: | Re: Modifying Emacs to use the Mac OS X Keychain Services |
Date: | Tue, 14 Jun 2011 00:12:21 -0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> I need some advice. Now that I am providing a `ns-keychain-open' > function and a `ns-keychain-create' function I need to know how to > store a pointer to a SecKeychainRef object in a Lisp_Object variable. > Can I simply use a type cast? No, a simple type cast won't do. If the Lisp_Object is fully under your control (so you always know you're the one who built it and never need to check what kind of Lisp_Object it is), you can use a Lisp_Misc_Save_value. "grep -i save_value src/*.[ch]" should get you started. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |