[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using guile to extend gaim

From: javabsp
Subject: Using guile to extend gaim
Date: Mon, 16 Jun 2003 19:45:39 -0700 (PDT)
User-agent: DreamHost Webmail

I am writing a plugin loader for gaim that would allow people to write
scheme code to extend gaim. For those who don't know, gaim is a
multi-protocol IM client. Its website is at .
I am having a couple issues, hopefully someone on this list will be able
to clearify them for me.
1) Because having 2 scheme scripts that interfere with each other is not
very desirable, I am creating an environment to load each script. The
snapshot of the relevant code is here:
env = scm_make_eval_environment(scm_system_environment->local,
scheme = scm_c_read_string(code);
scm_eval_body(scheme, env);
Where code is a char * containing the Scheme code. I wonder if this is the
right way to do it, or if there's a better way?
2) How to destroy the environment after it's no longer useful (to unload a
3) Is there an example on calling a generic function with C?

- Ka-Hing

reply via email to

[Prev in Thread] Current Thread [Next in Thread]