IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 9, 2007, 9:58:22 AM (20 years ago)
Author:
eugene
Message:

added book / page commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/include/data.h

    r8190 r10997  
    1616} Queue;
    1717
     18typedef struct {
     19  char *name;
     20  int NWORDS;
     21  int Nwords;
     22  char **words;
     23  char **value;
     24} Page;
     25
     26typedef struct {
     27  char *name;
     28  int NPAGES;
     29  int Npages;
     30  Page **pages;
     31  int *index;
     32  char **pageIDs;
     33} Book;
     34
    1835void InitData ();
     36
     37/* in book.c */
     38void InitBooks ();
     39void InitBook (Book *book, char *name);
     40void FreeBook (Book *book);
     41Book *FindBook (char *name);
     42Book *GetBook (int where);
     43Book *CreateBook (char *name);
     44int DeleteBook (Book *book);
     45void ListBooks ();
     46
     47/* in page.c */
     48void InitPage (Page *page, char *name);
     49void FreePage (Page *page);
     50Page *FindPage (Book *book, char *name);
     51Page *GetPage (Book *book, int where);
     52Page *CreatePage (Book *book, char *name);
     53int DeletePage (Book *book, Page *page);
     54void ListPages (Book *book);
     55void ListWords (Page *page);
     56int BookSetWord (Page *page, char *word, char *value);
     57char *BookGetWord (Page *page, char *word);
    1958
    2059/* in queues.c */
Note: See TracChangeset for help on using the changeset viewer.