Changeset 5919 for trunk/Ohana/src/opihi/lib.data/open_graph.c
- Timestamp:
- Jan 5, 2006, 6:55:37 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.data/open_graph.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.data/open_graph.c
r5850 r5919 5 5 # define NXGRAPH 5 6 6 7 static int IsImage = FALSE;8 7 static int Active; 9 8 static int Xgraph[NXGRAPH]; 10 9 static Graphdata graphdata[NXGRAPH]; 11 10 12 int GetCurrentDevice () {13 return (IsImage);14 }15 11 16 void SetImageDevice (int state) {17 IsImage = state;18 }19 12 20 13 void QuitGraph () { … … 69 62 70 63 int fd; 71 char *kapa_exec ;64 char *kapa_exec, name[16]; 72 65 73 66 kapa_exec = get_variable ("KAPA"); … … 77 70 } 78 71 79 fd = KiiOpen (kapa_exec, NULL); 72 snprintf (name, 16, "[%d]", N); 73 fd = KiiOpen (kapa_exec, name); 74 free (kapa_exec); 80 75 81 76 if (fd < 0) { … … 158 153 graphdata[Active] = data; 159 154 } 155 156 /** internal tracking of current active device type **/ 157 158 static int IsImage = FALSE; 159 160 int GetCurrentDevice () { 161 return (IsImage); 162 } 163 164 void SetImageDevice (int state) { 165 IsImage = state; 166 } 167
Note:
See TracChangeset
for help on using the changeset viewer.
