IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2009, 3:31:25 PM (17 years ago)
Author:
Paul Price
Message:

It builds. Hasn't been tested yet, though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSkycell/src/ppSkycell.c

    r23982 r23992  
    55#include <stdio.h>
    66#include <pslib.h>
     7#include <psmodules.h>
     8
     9#include "ppSkycell.h"
    710
    811int main(int argc, char *argv[])
     
    1114    if (!data) {
    1215        psErrorStackPrint(stderr, "Unable to initialise.");
    13         exit(PS_EXIT_CONFIG_ERROR);
     16        return PS_EXIT_CONFIG_ERROR;
    1417    }
    1518
     
    1720        psErrorStackPrint(stderr, "Unable to parse arguments.");
    1821        psFree(data);
    19         exit(PS_EXIT_CONFIG_ERROR);
     22        return PS_EXIT_CONFIG_ERROR;
    2023    }
    2124
     25    if (!ppSkycellCamera(data)) {
     26        psErrorStackPrint(stderr, "Unable to parse camera configuration.");
     27        psFree(data);
     28        return PS_EXIT_CONFIG_ERROR;
     29    }
    2230
     31    if (!ppSkycellLoop(data)) {
     32        psErrorStackPrint(stderr, "Unable to process data.");
     33        psFree(data);
     34        return PS_EXIT_DATA_ERROR;
     35    }
    2336
     37    psFree(data);
     38
     39    return PS_EXIT_SUCCESS;
     40}
     41
Note: See TracChangeset for help on using the changeset viewer.