*** empty log message ***
[dyninst.git] / visi / h / visualization.h
1 /* $Log: visualization.h,v $
2 /* Revision 1.2  1994/03/17 05:13:41  newhall
3 /* change callback type
4 /*
5  * Revision 1.1  1994/03/14  20:27:33  newhall
6  * changed visi subdirectory structure
7  *  */ 
8 #ifndef _visualization_h
9 #define _visualization_h
10 #include "datagrid.h"
11 #include "mrlist.h"
12 #include "error.h" 
13 #include "visi.SRVR.h"
14
15 #define FILETABLESIZE  64
16 #define EVENTSIZE      FOLD+1
17
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;
23
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];
28
29 // array of callback routines assoc. with file descriptors when
30 // user uses main routine provided by Paradyn
31 extern int (*fileDescCallbacks[FILETABLESIZE])();
32
33
34 // array of procedure pointers for callback routines assoc.
35 // with paradyn events  (ex. DATAVALUES,INVALIDMETRICSRESOURCES...)
36 extern int (*eventCallbacks[EVENTSIZE])(int);
37
38 // for calling paradyn-visualization interface routines
39 extern visualization *vp;
40 extern int visi_callback();
41
42
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();
51 extern int  initDone;
52 extern int  StartVisi(int argc,char *argv[]);
53
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));
57
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)()); 
61
62 // main loop provided by paradyn 
63 // not currently supported
64 extern void ParadynMain();
65
66 #endif