mirror of https://github.com/Gnucash/gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12911 57a11ea4-9604-0410-9ed3-97b8803252fdzzzoldfeatures/register-rewrite
parent
e50a31f89c
commit
555652140f
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* gnc-main.c:
|
||||
*
|
||||
* Copyright (C) 2006 Chris Shoemaker <c.shoemaker@cox.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, contact:
|
||||
*
|
||||
* Free Software Foundation Voice: +1-617-542-5942
|
||||
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "gnc-main.h"
|
||||
|
||||
static char *namespace_regexp = NULL;
|
||||
|
||||
void
|
||||
gnc_main_set_namespace_regexp(const char *str)
|
||||
{
|
||||
if (namespace_regexp)
|
||||
g_free(namespace_regexp);
|
||||
|
||||
if (str)
|
||||
namespace_regexp = g_strdup(str);
|
||||
}
|
||||
|
||||
const char *gnc_main_get_namespace_regexp(void)
|
||||
{
|
||||
return namespace_regexp;
|
||||
}
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* gnc-main.h:
|
||||
*
|
||||
* Copyright (C) 2006 Chris Shoemaker <c.shoemaker@cox.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, contact:
|
||||
*
|
||||
* Free Software Foundation Voice: +1-617-542-5942
|
||||
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
|
||||
* Boston, MA 02110-1301, USA gnu@gnu.org
|
||||
*/
|
||||
|
||||
#ifndef GNC_MAIN_H
|
||||
#define GNC_MAIN_H
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
void gnc_main_set_namespace_regexp(const char *str);
|
||||
const char *gnc_main_get_namespace_regexp(void);
|
||||
|
||||
|
||||
#endif /* GNC_MAIN_H */
|
||||
Loading…
Reference in new issue