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:
Dave Peticolas
2001-11-21 07:41:19 +00:00
parent a12af07f48
commit 7730a5f7dd
3 changed files with 23 additions and 21 deletions
+20
View File
@@ -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
View File
@@ -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 -2
View File
@@ -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> *
* *