-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 96399f3d29521b53385e12bd447d90f88ad51f52: path_to: revision_to:
commit 96399f3d29521b53385e12bd447d90f88ad51f52 Author: Marc Lehmann <schmorp@schmorp.de> Date: Sun Jun 3 10:38:22 2012 +0000 *** empty log message *** diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
--- a/src/rxvtperl.xs +++ b/src/rxvtperl.xs @@ -51,6 +51,14 @@ ///////////////////////////////////////////////////////////////////////////// +typedef char * octet_string; +typedef char * utf8_string; + +typedef GdkPixbuf * urxvt__pixbuf; +typedef rxvt_img * urxvt__img; + +///////////////////////////////////////////////////////////////////////////// + static wchar_t * sv2wcs (SV *sv) { @@ -1922,3 +1930,12 @@ overlay::DESTROY () INCLUDE: $PERL <iom_perl.xs -pe s/IOM_MODULE/urxvt/g,s/IOM_CLASS/urxvt/g | +MODULE = urxvt PACKAGE = urxvt::pixbuf PREFIX = gdk_pixbuf_ + +urxvt::pixbuf gdk_pixbuf_new_from_file (octet_string filename, GError **error = 0) + +void +DESTROY (urxvt::pixbuf self) + CODE: + gdk_pixbuf_unref (self); + diff --git a/src/typemap b/src/typemap
--- a/src/typemap +++ b/src/typemap @@ -1,3 +1,6 @@ +octet_string T_OCTET_STRING +utf8_string T_UTF8_STRING + rxvt_term * T_TERM overlay * T_OVERLAY @@ -6,6 +9,10 @@ Time T_UV Atom T_UV Window T_UV +urxvt::pixbuf T_PTROBJ +urxvt::img T_PTROBJ + +GError ** T_UV INPUT @@ -14,6 +21,11 @@ T_TERM T_OVERLAY $var = SvOVERLAY ($arg); +T_OCTET_STRING + $var = SvPVbyte_nolen ($arg) + +T_UTF8_STRING + $var = SvPVutf8_nolen ($arg); // imperfect, destroys references OUTPUT
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 10:45:27 2024