Logo Search packages:      
Sourcecode: viewglob version File versions

seer.h

/*
      Copyright (C) 2004, 2005 Stephen Bach
      This file is part of the viewglob package.

      viewglob 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.

      viewglob 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 viewglob; if not, write to the Free Software
      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef SEER_H
#define SEER_H

#if HAVE_CONFIG_H
#  include "config.h"
#endif

#include "common.h"
#include "sequences.h"
#include "cmdline.h"
#include "children.h"

BEGIN_C_DECLS

struct options {
      enum shell_type shell_type;
      char* executable;
      char* display;
      char* config_file;
      char* shell_out_file;
      char* term_out_file;
      char* init_loc;
      char* expand_command;
      bool  smart_insert;
};


/* Data structure for the user's shell. */
struct user_shell {
      char* pwd;
      struct cmdline cmd;
      struct pty_child s;

      int shell_transcript_fd;
      int term_transcript_fd;

      bool term_size_changed;
      bool expect_newline;
};


/* Data structure for seer's sandbox shell. */
struct glob_shell {
      char* glob_cmd;
      struct pty_child s;
};


/* Prototypes */
void sigwinch_handler(int signum);
void sigterm_handler(int signum);
bool handle_signals(void);
void handler(int signum);
size_t strlen_safe(const char* string);

END_C_DECLS

#endif /* !SEER_H */

Generated by  Doxygen 1.6.0   Back to index