A.4. API Subroutines

There are only six subroutines in the RTA API. Table A-1 summarizes them.

Table A-1. Subroutines for the RTA PostgreSQL API
Subroutine Description
dbcommand() Provides an interface to PostgreSQL clients
rta_add_table() Adds a table and its columns to the RTA database
SQL_string() Executes an SQL statement in the RTA database
rta_config_dir() Sets the default path to the savefiles directory
rta_save() Saves a table to a file
rta_load() Loads a table from a file

The subroutines in the RTA libraries usually return one of the following values.

 /* successfully executed request or command */ #define RTA_SUCCESS (0) /* input did not have a full command */ #define RTA_NOCMD (1) /* encountered an internal error */ #define ...

Get Linux Appliance Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.