mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Revert gnc_option_db_lookup|set_glist_value to ...scm_value.
GLists and SCM lists are not interchangeable.
This commit is contained in:
parent
776d1aaa0e
commit
7022f5222d
libgnucash/app-utils
@ -21,6 +21,7 @@
|
||||
* *
|
||||
\********************************************************************/
|
||||
|
||||
#include <libguile.h>
|
||||
#include <string>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
@ -1484,14 +1485,14 @@ gnc_option_db_lookup_qofinstance_value(GncOptionDB*, const char*, const char*)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
GList*
|
||||
gnc_option_db_lookup_glist_value(GncOptionDB*, const char*, const char*)
|
||||
SCM
|
||||
gnc_option_db_lookup_scm_value(GncOptionDB*, const char*, const char*)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
gnc_option_db_set_glist_value(GncOptionDB*, const char*, const char*, GList*)
|
||||
gnc_option_db_set_scm_value(GncOptionDB*, const char*, const char*, SCM)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,9 @@ class GncOptionDB;
|
||||
typedef struct GncOption GncOption;
|
||||
typedef struct GncOptionDB GncOptionDB;
|
||||
#endif
|
||||
|
||||
#include <libguile.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
class GncOptionDB;
|
||||
extern "C"
|
||||
@ -153,7 +156,7 @@ const QofInstance* gnc_option_db_lookup_qofinstance_value(GncOptionDB*,
|
||||
* @return the GList* of the value or nullptr if the option isn't found
|
||||
* or if its value isn't a string.
|
||||
*/
|
||||
GList* gnc_option_db_lookup_glist_value(GncOptionDB*, const char*, const char*);
|
||||
SCM gnc_option_db_lookup_scm_value(GncOptionDB*, const char*, const char*);
|
||||
|
||||
/**
|
||||
* Set the GList* value of an option in the GncOptionDB.
|
||||
@ -166,8 +169,8 @@ GList* gnc_option_db_lookup_glist_value(GncOptionDB*, const char*, const char*);
|
||||
* @param name the option name
|
||||
* @param value the value to be stored in the option.
|
||||
*/
|
||||
void gnc_option_db_set_glist_value(GncOptionDB*, const char*,
|
||||
const char*, GList*);
|
||||
void gnc_option_db_set_scm_value(GncOptionDB*, const char*,
|
||||
const char*, SCM);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user