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/section.c

    r7917 r13391  
    44 
    55  int N, List;
    6   int Ngraph, Xgraph;
     6  int kapa;
     7  char *name;
    78  Graphdata graphmode;
    89  KapaSection section;
     
    1415  }
    1516
    16   Ngraph = -1;
     17  name = NULL;
    1718  if ((N = get_argument (argc, argv, "-n"))) {
    1819    remove_argument (N, &argc, argv);
    19     Ngraph = atof (argv[N]);
     20    name = strcreate (argv[N]);
    2021    remove_argument (N, &argc, argv);
    2122  }
    22   if (!GetGraph (&graphmode, &Xgraph, &Ngraph)) return (FALSE);
     23  if (!GetGraph (&graphmode, &kapa, name)) return (FALSE);
     24  FREE (name);
    2325
    2426  /* list sections */
    2527  if (argc == 1) {
    26     KapaGetSection (Xgraph, "*");
     28    KapaGetSection (kapa, "*");
    2729    gprint (GP_ERR, "USAGE: section name [x y dx dy]\n");
    2830    return (TRUE);
     
    3234    /* select / show section */
    3335    if (List) {
    34       KapaGetSection (Xgraph, argv[1]);
     36      KapaGetSection (kapa, argv[1]);
    3537    } else {
    36       KapaSelectSection (Xgraph, argv[1]);
     38      KapaSelectSection (kapa, argv[1]);
    3739    }
    3840    return (TRUE);
     
    4648    section.dx = atof (argv[4]);
    4749    section.dy = atof (argv[5]);
    48     KapaSetSection (Xgraph, &section);
     50    KapaSetSection (kapa, &section);
    4951    return (TRUE);
    5052  }
Note: See TracChangeset for help on using the changeset viewer.