IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2006, 6:55:37 PM (21 years ago)
Author:
eugene
Message:

split init into general and program init, cleaned up open_image, open_graph, and related

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.data/open_graph.c

    r5850 r5919  
    55# define NXGRAPH 5
    66
    7 static int       IsImage = FALSE;
    87static int       Active;
    98static int       Xgraph[NXGRAPH]; 
    109static Graphdata graphdata[NXGRAPH];
    1110
    12 int GetCurrentDevice () {
    13   return (IsImage);
    14 }
    1511
    16 void SetImageDevice (int state) {
    17   IsImage = state;
    18 }
    1912
    2013void QuitGraph () {
     
    6962
    7063  int fd;
    71   char *kapa_exec;
     64  char *kapa_exec, name[16];
    7265 
    7366  kapa_exec = get_variable ("KAPA");
     
    7770  }
    7871
    79   fd = KiiOpen (kapa_exec, NULL);
     72  snprintf (name, 16, "[%d]", N);
     73  fd = KiiOpen (kapa_exec, name);
     74  free (kapa_exec);
    8075
    8176  if (fd < 0) {
     
    158153  graphdata[Active] = data;
    159154}
     155
     156/** internal tracking of current active device type **/
     157
     158static int       IsImage = FALSE;
     159
     160int GetCurrentDevice () {
     161  return (IsImage);
     162}
     163
     164void SetImageDevice (int state) {
     165  IsImage = state;
     166}
     167
Note: See TracChangeset for help on using the changeset viewer.