MCPcopy Index your code
hub / github.com/MapServer/MapServer / msLayerAddProcessing

Function msLayerAddProcessing

maplayer.c:747–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747void msLayerAddProcessing( layerObj *layer, const char *directive )
748
749{
750 layer->numprocessing++;
751 if( layer->numprocessing == 1 )
752 layer->processing = (char **) msSmallMalloc(2*sizeof(char *));
753 else
754 layer->processing = (char **) msSmallRealloc(layer->processing, sizeof(char*) * (layer->numprocessing+1) );
755 layer->processing[layer->numprocessing-1] = msStrdup(directive);
756 layer->processing[layer->numprocessing] = NULL;
757}
758
759char *msLayerGetProcessing( layerObj *layer, int proc_index) {
760 if (proc_index < 0 || proc_index >= layer->numprocessing) {

Callers 4

msCopyLayerFunction · 0.85
loadLayerFunction · 0.85
msLayerSetProcessingKeyFunction · 0.85
processLayerMethod · 0.85

Calls 3

msSmallMallocFunction · 0.85
msSmallReallocFunction · 0.85
msStrdupFunction · 0.85

Tested by

no test coverage detected