IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 15, 2007, 3:25:20 PM (19 years ago)
Author:
eugene
Message:

changed device numbers to device names; using inet sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/cmd.data/tv.c

    r7917 r13391  
    33int tv (int argc, char **argv) {
    44 
    5   int N, Ximage, Nimage;
     5  int N, kapa;
     6  char *name;
    67  Coords coords;
    78  Buffer *buf;
     
    910  KiiDisplayMode mode;
    1011
    11   Nimage = -1;
     12  name = NULL;
    1213  if ((N = get_argument (argc, argv, "-n"))) {
    1314    remove_argument (N, &argc, argv);
    14     Nimage = atof (argv[N]);
     15    name = strcreate (argv[N]);
    1516    remove_argument (N, &argc, argv);
    1617  }
    17   if (!GetImage (&Ximage, &Nimage)) return (FALSE);
     18  if (!GetImage (&kapa, name)) return (FALSE);
     19  FREE (name);
    1820
    1921  /* shell exits on pipe close, FIX */
    2022  if ((N = get_argument (argc, argv, "-kill"))) {
    21     KiiClose (Ximage);
    22     Ximage = 0;
     23    KiiClose (kapa);
    2324    return (TRUE);
    2425  }
     
    5253  image.name = buf[0].name;
    5354
    54   KiiNewPicture1D (Ximage, &image, &mode, &coords);
     55  KiiNewPicture1D (kapa, &image, &mode, &coords);
    5556
    5657  SetImageName (argv[1]);
Note: See TracChangeset for help on using the changeset viewer.