/* GConf * Copyright (C) 1999, 2000 Red Hat Inc. * Developed by Havoc Pennington * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include #include "scm-gconf.h" /* Quick hack so I can mark strings */ #ifdef _ #warning "_ already defined" #else #define _(x) x #endif #ifdef N_ #warning "N_ already defined" #else #define N_(x) x #endif static void real_main(void* closure, int argc, char* argv[]) { GError* err = NULL; if (!gconf_init(argc, argv, &err)) { fprintf(stderr, _("Failed to init gconf: %s\n"), err->message); g_error_free(err); exit(1); } gconf_init_scm(); gh_eval_str("(set-repl-prompt! \"gconf> \")"); scm_shell(argc, argv); } int main(int argc, char* argv[]) { scm_boot_guile(argc, argv, real_main, 0); return 0; // never reached }