IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2007, 5:24:58 PM (19 years ago)
Author:
eugene
Message:

converting to kapa2 support: INET socket connections, single device type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Layout.c

    r13333 r13344  
    44void InitLayout (int argc, char **argv) {
    55
    6   int N, UseGraph;
     6  int N;
    77  Section *section;
    88
    9   UseGraph = FALSE;
    10   if ((N = get_argument (argc, argv, "-image"))) {
    11     remove_argument(N, &argc, argv);
    12     UseGraph = FALSE;
    13   }
    14 
    15   /** initiate connection with server **/
    16   if (!FOREGROUND) {   
    17     if (argc < 2) {
    18       fprintf (stderr, "socket path not specified\n");
    19       exit (0);
    20     }
    21     sock = KiiWait (argv[1]);
    22   }
     9  InitPipe();
    2310
    2411  ACTIVE_CURSOR = FALSE;
     
    3724  }
    3825
     26  /* move this out of here... */
     27  if (argc != 1) {
     28    fprintf (stderr, "USAGE: kapa\n");
     29    exit (0);
     30  }
     31
    3932  InitRotFonts ();
    4033
    41   /* create basic section */
     34  /* create basic section, empty of image or graph */
    4235  section = AddSection ("default", 0.0, 0.0, 1.0, 1.0);
    43   if (UseGraph) {
    44     section->graph = InitGraph ();
    45     SetGraphSize (section);
    46   } else {
    47     section->image = InitImage ();
    48     SetImageSize (section);
    49   }
    5036}
Note: See TracChangeset for help on using the changeset viewer.