IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 13, 2007, 5:01:11 PM (19 years ago)
Author:
Paul Price
Message:

Declaring parameters const where appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r12762 r12831  
    1919
    2020// define an input-type pmFPAfile, bind to the optional fpa if supplied
    21 pmFPAfile *pmFPAfileDefineInput(pmConfig *config, pmFPA *fpa, const char *name)
     21pmFPAfile *pmFPAfileDefineInput(const pmConfig *config, pmFPA *fpa, const char *name)
    2222{
    2323    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    104104
    105105// define a pmFPAfile, bind to the optional fpa if supplied
    106 pmFPAfile *pmFPAfileDefineOutput(pmConfig *config, pmFPA *fpa, const char *name)
     106pmFPAfile *pmFPAfileDefineOutput(const pmConfig *config, pmFPA *fpa, const char *name)
    107107{
    108108    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    237237// save the pmFPAfile on config->files
    238238// return the pmFPAfile (a view to the one saved on config->files)
    239 pmFPAfile *pmFPAfileDefineFromArgs (bool *found, pmConfig *config, const char *filename, const char *argname)
     239pmFPAfile *pmFPAfileDefineFromArgs(bool *found, pmConfig *config, const char *filename, const char *argname)
    240240{
    241241    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    406406// save the pmFPAfile on config->files
    407407// return the pmFPAfile (a view to the one saved on config->files)
    408 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, pmConfig *config, const char *filename, const char *argname)
     408pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, const pmConfig *config, const char *filename, const char *argname)
    409409{
    410410    PS_ASSERT_PTR_NON_NULL(input, NULL);
     
    641641// define the named pmFPAfile from the camera->config
    642642// only valid for pmFPAfile->mode = READ
    643 pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, const char *filename)
     643pmFPAfile *pmFPAfileDefineFromConf (bool *found, const pmConfig *config, const char *filename)
    644644{
    645645    PS_ASSERT_PTR_NON_NULL(config, false);
     
    703703// save the pmFPAfile on config->files
    704704// return the pmFPAfile (a view to the one saved on config->files)
    705 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, const char *filename,
     705pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, const pmConfig *config, const char *filename,
    706706                                     pmFPA *input, pmDetrendType type)
    707707{
     
    860860// create a new output pmFPAfile based on an existing FPA
    861861// only valid for pmFPAfile->mode == WRITE (or internal?)
    862 pmFPAfile *pmFPAfileDefineFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename)
     862pmFPAfile *pmFPAfileDefineFromFPA (const pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename)
    863863{
    864864    PS_ASSERT_PTR_NON_NULL(config, false);
     
    896896// create a new output pmFPAfile based on an existing FPA
    897897// only valid for pmFPAfile->mode == WRITE (or internal?)
    898 pmFPAfile *pmFPAfileDefineNewCamera (pmConfig *config, const char *filename)
     898pmFPAfile *pmFPAfileDefineNewCamera (const pmConfig *config, const char *filename)
    899899{
    900900    PS_ASSERT_PTR_NON_NULL(config, false);
     
    915915}
    916916
    917 pmFPAfile *pmFPAfileDefineChipMosaic(pmConfig *config, pmFPA *src, const char *filename)
     917pmFPAfile *pmFPAfileDefineChipMosaic(const pmConfig *config, pmFPA *src, const char *filename)
    918918{
    919919    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    989989}
    990990
    991 pmFPAfile *pmFPAfileDefineFPAMosaic(pmConfig *config, pmFPA *src, const char *filename)
     991pmFPAfile *pmFPAfileDefineFPAMosaic(const pmConfig *config, pmFPA *src, const char *filename)
    992992{
    993993    PS_ASSERT_PTR_NON_NULL(config, NULL);
Note: See TracChangeset for help on using the changeset viewer.