File indexing completed on 2024-05-12 11:32:33
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-or-later 0003 SPDX-FileCopyrightText: 2009 Alexander Rieder <alexanderrieder@gmail.com> 0004 */ 0005 0006 #ifndef _RCALLBACKS_H 0007 #define _RCALLBACKS_H 0008 0009 class RServer; 0010 class Expression; 0011 0012 //R includes 0013 #include <R.h> 0014 #include <Rembedded.h> 0015 #include <Rversion.h> 0016 #include <Rdefines.h> 0017 #define R_INTERFACE_PTRS 0018 #include <R_ext/Parse.h> 0019 0020 //This File implements the necessary callbacks for R 0021 //The information gathered will be pushed back to the RThread 0022 0023 void setupCallbacks(RServer* server); 0024 void setCurrentExpression(Expression* expression); 0025 0026 void onWriteConsoleEx(const char* text, int size,int otype); 0027 void onShowMessage(const char* text); 0028 void onBusy(int which); 0029 int onReadConsole(const char* prompt, unsigned char* buf, int buflen, int hist); 0030 int onShowFiles(int nfile, const char** file, const char** headers, const char* wtitle, Rboolean del, const char* pager); 0031 0032 #endif /* _RCALLBACKS_H */