add protos and macros
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13983 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 2000,2004 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
#ifndef __rtbl_h__
|
#ifndef __rtbl_h__
|
||||||
#define __rtbl_h__
|
#define __rtbl_h__
|
||||||
@@ -40,18 +41,33 @@ typedef struct rtbl_data *rtbl_t;
|
|||||||
#define RTBL_ALIGN_LEFT 0
|
#define RTBL_ALIGN_LEFT 0
|
||||||
#define RTBL_ALIGN_RIGHT 1
|
#define RTBL_ALIGN_RIGHT 1
|
||||||
|
|
||||||
|
/* flags */
|
||||||
|
#define RTBL_HEADER_STYLE_NONE 1
|
||||||
|
|
||||||
rtbl_t rtbl_create (void);
|
rtbl_t rtbl_create (void);
|
||||||
|
|
||||||
void rtbl_destroy (rtbl_t);
|
void rtbl_destroy (rtbl_t);
|
||||||
|
|
||||||
|
void rtbl_set_flags (rtbl_t, unsigned int);
|
||||||
|
|
||||||
|
unsigned int rtbl_get_flags (rtbl_t);
|
||||||
|
|
||||||
int rtbl_set_prefix (rtbl_t, const char*);
|
int rtbl_set_prefix (rtbl_t, const char*);
|
||||||
|
|
||||||
|
int rtbl_set_separator (rtbl_t table, const char *separator);
|
||||||
|
|
||||||
int rtbl_set_column_prefix (rtbl_t, const char*, const char*);
|
int rtbl_set_column_prefix (rtbl_t, const char*, const char*);
|
||||||
|
|
||||||
|
int rtbl_set_column_affix_by_id(rtbl_t, unsigned int, const char*, const char*);
|
||||||
|
|
||||||
int rtbl_add_column (rtbl_t, const char*, unsigned int);
|
int rtbl_add_column (rtbl_t, const char*, unsigned int);
|
||||||
|
|
||||||
|
int rtbl_add_column_by_id (rtbl_t, unsigned int, const char*, unsigned int);
|
||||||
|
|
||||||
int rtbl_add_column_entry (rtbl_t, const char*, const char*);
|
int rtbl_add_column_entry (rtbl_t, const char*, const char*);
|
||||||
|
|
||||||
|
int rtbl_add_column_entry_by_id (rtbl_t, unsigned int, const char*);
|
||||||
|
|
||||||
int rtbl_format (rtbl_t, FILE*);
|
int rtbl_format (rtbl_t, FILE*);
|
||||||
|
|
||||||
#endif /* __rtbl_h__ */
|
#endif /* __rtbl_h__ */
|
||||||
|
Reference in New Issue
Block a user