libtrigger.h

Go to the documentation of this file.
00001 /****************************************************************************
00002  *   File    : libtrigger.h
00003  *   Author  : Adam Cheyer
00004  *   Updated : 12/99
00005  *
00006  *****************************************************************************/
00007 /*
00008  * Copyright (C) 2006  SRI International
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  * SRI International: 333 Ravenswood Ave, Menlo Park, CA 94025
00025  */
00026 #ifndef _LIBTRIGGER_H_INCLUDED
00027 #define _LIBTRIGGER_H_INCLUDED
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 #ifdef IS_DLL
00034 #define EXTERN __declspec(dllexport)
00035 #else
00036 #define EXTERN extern
00037 #endif
00038 
00039 
00040   EXTERN int oaa_CheckTriggers(char *type, ICLTerm *condition_var, char *op);
00041   EXTERN int oaa_AddTrigger(char *type, ICLTerm *condition, ICLTerm *action,
00042                             ICLTerm *initial_params, ICLTerm **out_params);
00043   EXTERN int oaa_RemoveTrigger(char *type, ICLTerm *condition,
00044                                ICLTerm *action, ICLTerm *initial_params, 
00045                                ICLTerm **out_params);
00046 
00047   /* DG : Temporarily put here, should be hidden */
00048 
00049   int oaa_add_trigger_local(char *type, ICLTerm *condition, ICLTerm *action,
00050                             ICLTerm *params);
00051   int oaa_remove_trigger_local(char *type, ICLTerm *condition, ICLTerm *action,
00052                                ICLTerm *params);
00053 
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 
00058 #endif

Generated on Wed May 23 17:20:12 2007 using doxygen 1.5.2