Logo Search packages:      
Sourcecode: g15composer version File versions  Download package

g15composer.h

/*
    This file is part of g15tools.

    g15tools is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    g15tools is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with g15tools; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#ifndef G15COMPOSER_H_
#define G15COMPOSER_H_

struct strList;
struct strItem;

struct strList
{
      struct strItem *first_string;
      struct strItem *last_string;
};

struct strItem
{
      char *string;
      struct strItem *next_string;
};

struct bufList;
struct bufItem;

struct bufList
{
      struct bufItem *first_buf;
      struct bufItem *last_buf;
};

struct bufItem
{
      char *buffer;
      int id;
      int width;
      int height;
      struct bufItem *next;
};

struct threadList;
struct threadItem;

struct threadList
{
      struct threadItem *first_thread;
      struct threadItem *last_thread;
      pthread_mutex_t mutex;
      int leaving;
};

struct threadItem
{
      pthread_t thread;
      struct parserData *data;
      struct threadItem *next;
};

struct parserData
{
      int background;
      int g15screen_fd;
      g15canvas *canvas;
      struct strList *listptr;
      struct strItem *itemptr;
      char *fifo_filename;
      int mkey_state;
      int leaving;
      void *scanner;
      pthread_t thread;
      struct threadList *threads;
      struct bufList *buflist;
      struct bufItem *bufitem;
      int cmd_only;
};

int yyerror (char *err);
void printUsage ();
void *threadEntry (void *arg);
struct strList * new_strList ();
void add_string (struct strList *strList, char *string);
struct bufList * new_bufList ();
int add_buf (struct bufList *bufList, int id, char *buffer, int width, int height);
struct threadList * new_threadList ();
void add_thread (struct parserData *data);
void del_thread (struct parserData *data);
void updateScreen (g15canvas *canvas, int g15screen_fd, int force);
int getDispCol (int len, int size, int type);

#endif /* G15COMPOSER_H_ */

Generated by  Doxygen 1.6.0   Back to index