rtbl.h revision 72445
11590Srgrimes/*
21590Srgrimes * Copyright (c) 2000 Kungliga Tekniska H�gskolan
31590Srgrimes * (Royal Institute of Technology, Stockholm, Sweden).
41590Srgrimes * All rights reserved.
51590Srgrimes *
61590Srgrimes * Redistribution and use in source and binary forms, with or without
71590Srgrimes * modification, are permitted provided that the following conditions
81590Srgrimes * are met:
91590Srgrimes *
101590Srgrimes * 1. Redistributions of source code must retain the above copyright
111590Srgrimes *    notice, this list of conditions and the following disclaimer.
121590Srgrimes *
131590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
141590Srgrimes *    notice, this list of conditions and the following disclaimer in the
151590Srgrimes *    documentation and/or other materials provided with the distribution.
161590Srgrimes *
171590Srgrimes * 3. Neither the name of the Institute nor the names of its contributors
181590Srgrimes *    may be used to endorse or promote products derived from this software
191590Srgrimes *    without specific prior written permission.
201590Srgrimes *
211590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
221590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241590Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
251590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311590Srgrimes * SUCH DAMAGE.
321590Srgrimes */
331590Srgrimes
341590Srgrimes#ifndef __rtbl_h__
351590Srgrimes#define __rtbl_h__
361590Srgrimes
371590Srgrimesstruct rtbl_data;
381590Srgrimestypedef struct rtbl_data *rtbl_t;
391590Srgrimes
401590Srgrimes#define RTBL_ALIGN_LEFT		0
411590Srgrimes#define RTBL_ALIGN_RIGHT	1
421590Srgrimes
431590Srgrimesrtbl_t rtbl_create (void);
441590Srgrimes
451590Srgrimesvoid rtbl_destroy (rtbl_t);
461590Srgrimes
471590Srgrimesint rtbl_set_prefix (rtbl_t, const char*);
488874Srgrimes
491590Srgrimesint rtbl_set_column_prefix (rtbl_t, const char*, const char*);
501590Srgrimes
511590Srgrimesint rtbl_add_column (rtbl_t, const char*, unsigned int);
521590Srgrimes
531590Srgrimesint rtbl_add_column_entry (rtbl_t, const char*, const char*);
541590Srgrimes
551590Srgrimesint rtbl_format (rtbl_t, FILE*);
561590Srgrimes
571590Srgrimes#endif /* __rtbl_h__ */
581590Srgrimes