* some more work on the guile bindings; somewhat working, still WIP

This commit is contained in:
Dirk-Jan C. Binnema
2011-07-13 00:54:06 +03:00
parent d91b4ffdf8
commit c023e2c38c
10 changed files with 411 additions and 159 deletions

View File

@ -17,7 +17,7 @@
include $(top_srcdir)/gtest.mk
# enforce compiling this dir first before decending into tests/
INCLUDES=-I${top_srcdir} ${GUILE_CFLAGS} ${GLIB_CFLAGS}
INCLUDES=-I${top_srcdir} -I${top_srcdir}/src ${GUILE_CFLAGS} ${GLIB_CFLAGS}
# don't use -Werror, as it might break on other compilers
# use -Wno-unused-parameters, because some callbacks may not

View File

@ -17,15 +17,24 @@
**
*/
#include <mu-runtime.h>
#include <libguile.h>
#include <libmuguile/mu-msg-guile.h>
#include <libmuguile/mu-guile-msg.h>
#include <libmuguile/mu-guile-store.h>
int
main (int argc, char *argv[])
{
scm_with_guile (&mu_msg_guile_register, NULL);
mu_runtime_init ("/home/djcb/.mu");
scm_with_guile (&mu_guile_msg_init, NULL);
scm_with_guile (&mu_guile_store_init, NULL);
scm_shell (argc, argv);
mu_runtime_uninit ();
return 0;
}