"Fossies" - the Fresh Open Source Software Archive

Member "Pansophica-src-1.3/BAF/tcl/BAF_tclapi.h" (1 Feb 2008, 2303 Bytes) of package /linux/www/old/Pansophica-src-1.3-1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "BAF_tclapi.h" see the Fossies "Dox" file reference documentation.

    1 /******************************************************************************
    2 
    3  Pansophica, An intelligent, virtual-reality, web search agent
    4  Copyright (C) MMVIII, NeuralVR Technologies Ltd.
    5 
    6  This program is free software: you can redistribute it and/or modify
    7  it under the terms of the GNU General Public License as published by
    8  the Free Software Foundation, either version 3 of the License, or
    9  (at your option) any later version.
   10 
   11  This program is distributed in the hope that it will be useful,
   12  but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  GNU General Public License for more details.
   15 
   16  You should have received a copy of the GNU General Public License
   17  along with this program.  If not, see http://www.gnu.org/licenses/.
   18 
   19  MODULE: BAF_tclapi.h
   20  $Id: BAF_tclapi.h,v 1.5 2008/02/01 18:03:33 dean Exp $
   21 
   22  SYNOPSIS
   23  Public interfaces for Tcl interfaces to Chris
   24 
   25  HISTORY
   26  $Log: BAF_tclapi.h,v $
   27  Revision 1.5  2008/02/01 18:03:33  dean
   28  first GPL version, mac ready
   29 
   30  Revision 1.4  2003/11/12 19:06:16  dean
   31  boolean to BAF_BOOLEAN, true to BAF_TRUE, false to BAF_FALSE
   32 
   33  Revision 1.3  2003/10/22 03:54:12  dean
   34  changed copyrighting
   35 
   36  Revision 1.2  1999/02/25 22:17:00  dean
   37  interface with queue reference for app queue rather than int id
   38 
   39  Revision 1.1.1.1  1999/01/14 21:54:23  dean
   40  Initial import of debugged and running BAF
   41 
   42 
   43 ******************************************************************************/
   44 
   45 #ifndef __BAF_TCLAPI_H
   46 #define __BAF_TCLAPI_H
   47 
   48 #include <tcl.h>
   49 #include "endo.h"
   50 
   51 /* : general success or failure indicator */
   52 typedef enum {
   53   BAF_TCL_SUCCESS,
   54   BAF_TCL_FAILED,
   55   BAF_TCL_NO_EVENT  /* no event in the queue */
   56 } BAF_TCL_RESULT;
   57 
   58 
   59 /* : installs the BAF-specifics into the given interpreter */
   60 BAF_TCL_RESULT BAF_tcl_init(char *application_name,
   61                 Tcl_Interp *interp);
   62 
   63 BAF_TCL_RESULT BAF_get_one_event(Tcl_Interp *interp,
   64                  OS_ENDO_QUEUE_REF msg_queue_id);
   65 
   66 /* : protos for tracking and checking session validity */
   67 int BAF_session_valid_mark_invalid( ENDO_MSG_REF msg );
   68 int BAF_session_valid_mark_valid( ENDO_MSG_REF msg );
   69 int BAF_session_valid_is_valid( ENDO_MSG_REF msg,
   70                 BAF_BOOLEAN *is_valid );
   71 int BAF_session_valid_deinit( void );
   72 
   73 #endif  /* __BAF_TCLAPI_H */