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

Function msIO_getHandler

mapio.c:151–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149/************************************************************************/
150
151msIOContext *msIO_getHandler( FILE * fp )
152
153{
154 int nThreadId = msGetThreadId();
155 msIOContextGroup *group = io_context_list;
156
157 msIO_Initialize();
158
159 if( group == NULL || group->thread_id != nThreadId )
160 {
161 group = msIO_GetContextGroup();
162 if( group == NULL )
163 return NULL;
164 }
165
166 if( fp == stdin || fp == NULL || strcmp((const char *)fp,"stdin") == 0 )
167 return &(group->stdin_context);
168 else if( fp == stdout || strcmp((const char *)fp,"stdout") == 0 )
169 return &(group->stdout_context);
170 else if( fp == stderr || strcmp((const char *)fp,"stderr") == 0 )
171 return &(group->stderr_context);
172 else
173 return NULL;
174}
175
176/************************************************************************/
177/* msIO_installHandlers() */

Callers 15

msWCSWriteDocument20Function · 0.85
msWFSGetCapabilities11Function · 0.85
saveImageMethod · 0.85
msWCSGetCapabilities11Function · 0.85
msWCSDescribeCoverage11Function · 0.85
msSOSGetCapabilitiesFunction · 0.85
msSOSGetObservationFunction · 0.85
msIO_printfFunction · 0.85
msIO_fprintfFunction · 0.85
msIO_vfprintfFunction · 0.85
msIO_fwriteFunction · 0.85
msIO_freadFunction · 0.85

Calls 3

msGetThreadIdFunction · 0.85
msIO_InitializeFunction · 0.85
msIO_GetContextGroupFunction · 0.85

Tested by

no test coverage detected