mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-30 08:08:15 -05:00
Derek Atkins's patch to make template transaction structs private.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5940 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -27,6 +27,26 @@
|
||||
|
||||
#include "SX-ttinfo.h"
|
||||
|
||||
/* kvp_frame policy? */
|
||||
struct TTInfo_s
|
||||
{
|
||||
/* FIXME add notes field */
|
||||
char *description; /* owned by us */
|
||||
char *num; /* owned by us */
|
||||
gnc_commodity *common_currency; /* not freed */
|
||||
|
||||
GList *splits; /* list of template splits, owned by us */
|
||||
};
|
||||
|
||||
struct TTSplitInfo_s
|
||||
{
|
||||
char *action; /* owned by us */
|
||||
/* FIXME: What about the split's kvp_frame */
|
||||
char *memo; /* owned by us */
|
||||
char *credit_formula, *debit_formula; /* owned by us */
|
||||
Account *acc;
|
||||
};
|
||||
|
||||
TTInfo *
|
||||
gnc_ttinfo_malloc(void)
|
||||
{
|
||||
|
||||
+2
-19
@@ -34,25 +34,8 @@
|
||||
#include "gnc-numeric.h"
|
||||
#include "gnc-commodity.h"
|
||||
|
||||
/* kvp_frame policy? */
|
||||
typedef struct
|
||||
{
|
||||
/* FIXME add notes field */
|
||||
char *description; /* owned by us */
|
||||
char *num; /* owned by us */
|
||||
gnc_commodity *common_currency; /* not freed */
|
||||
|
||||
GList *splits; /* list of template splits, owned by us */
|
||||
} TTInfo;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char *action; /* owned by us */
|
||||
/* FIXME: What about the split's kvp_frame */
|
||||
char *memo; /* owned by us */
|
||||
char *credit_formula, *debit_formula; /* owned by us */
|
||||
Account *acc;
|
||||
} TTSplitInfo;
|
||||
typedef struct TTInfo_s TTInfo;
|
||||
typedef struct TTSplitInfo_s TTSplitInfo;
|
||||
|
||||
TTInfo *gnc_ttinfo_malloc(void);
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/********************************************************************
|
||||
* dialog-sx-from-trans.c -- a simple dialog for creating a *
|
||||
* scheduled transaction for a "real *
|
||||
* one *
|
||||
* scheduled transaction from a real one *
|
||||
* Copyright (C) 2001 Robert Merkel <rgmerk@mira.net> *
|
||||
* Copyright (C) 2001 Joshua Sled <jsled@asynchronous.org> *
|
||||
* *
|
||||
|
||||
Reference in New Issue
Block a user