Mike Spadaru / physcom
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RPCFunction.cpp Source File

RPCFunction.cpp

00001 #include "RPCFunction.h"
00002 
00003 namespace physcom {
00004 
00005 RPCFunction::RPCFunction(void (*f)(char*, char*), const char* name) : RPC(name) {
00006     function_ptr = f;
00007 }
00008 
00009 /* 
00010  * Just run the attached function using the string thats in private memory 
00011  * - or just using null values
00012  */
00013 void RPCFunction::run(char* input, char* output) {
00014     (*function_ptr)(input, output);
00015 }
00016 
00017 } // Namespace physcom