1 /* $Log: visualization.h,v $
2 /* Revision 1.2 1994/03/17 05:13:41 newhall
3 /* change callback type
5 * Revision 1.1 1994/03/14 20:27:33 newhall
6 * changed visi subdirectory structure
8 #ifndef _visualization_h
9 #define _visualization_h
13 #include "visi.SRVR.h"
15 #define FILETABLESIZE 64
16 #define EVENTSIZE FOLD+1
18 // global variables assoc. with histo datagrid
19 extern visi_DataGrid dataGrid;
20 extern visi_MRList metricList;
21 extern visi_MRList resourceList;
22 extern int lastBucketSent;
24 // file descriptor array: 1st file desc. is assoc. w/ Paradyn
25 // remaining file descriptors are assigned by user when user
26 // uses main routine provided by Paradyn
27 extern int fileDesc[FILETABLESIZE];
29 // array of callback routines assoc. with file descriptors when
30 // user uses main routine provided by Paradyn
31 extern int (*fileDescCallbacks[FILETABLESIZE])();
34 // array of procedure pointers for callback routines assoc.
35 // with paradyn events (ex. DATAVALUES,INVALIDMETRICSRESOURCES...)
36 extern int (*eventCallbacks[EVENTSIZE])(int);
38 // for calling paradyn-visualization interface routines
39 extern visualization *vp;
40 extern int visi_callback();
43 ////////////////////////////////////////////////////////////////
44 // initialization routines
45 ////////////////////////////////////////////////////////////////
46 // connects to parent socket and registers the mainLoop routine
47 // as a callback on events on fileDesc[0]
48 // creates metric and resource lists from args
49 // args: type, nummetrics, metriclist,numresources,resourcelist
50 extern int VisiInit();
52 extern int StartVisi(int argc,char *argv[]);
54 // registration callback routine for paradyn events
55 // sets eventCallbacks[event] to callback routine provided by user
56 extern int RegistrationCallback(msgTag event,int (*callBack)(int));
58 // fd registration and callback routine registration for user
59 // to register callback routines when they use the provided main routine
60 extern int RegFileDescriptors(int *fd, int (*callBack)());
62 // main loop provided by paradyn
63 // not currently supported
64 extern void ParadynMain();