PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ SASetupDefaultHooks()

void SHPAPI_CALL SASetupDefaultHooks ( SAHooks psHooks)

Definition at line 195 of file safileio.c.

References SAHooks::Atof, SAHooks::Error, SAHooks::FClose, SAHooks::FFlush, SAHooks::FOpen, SAHooks::FRead, free(), SAHooks::FSeek, SAHooks::FTell, SAHooks::FWrite, malloc(), SAHooks::Remove, SADError(), SADFClose(), SADFFlush(), SADFOpen(), SADFRead(), SADFSeek(), SADFTell(), SADFWrite(), and SADRemove().

Referenced by DBFCreateEx(), DBFOpen(), SHPCreate(), and SHPOpen().

197 {
198  psHooks->FOpen = SADFOpen;
199  psHooks->FRead = SADFRead;
200  psHooks->FWrite = SADFWrite;
201  psHooks->FSeek = SADFSeek;
202  psHooks->FTell = SADFTell;
203  psHooks->FFlush = SADFFlush;
204  psHooks->FClose = SADFClose;
205  psHooks->Remove = SADRemove;
206 
207  psHooks->Error = SADError;
208  psHooks->Atof = atof;
209 }
SAFile SADFOpen(const char *pszFilename, const char *pszAccess)
Definition: safileio.c:94
SAOffset SADFTell(SAFile file)
Definition: safileio.c:141
SAOffset(* FTell)(SAFile file)
Definition: shapefil.h:259
int(* FFlush)(SAFile file)
Definition: shapefil.h:260
SAOffset SADFSeek(SAFile file, SAOffset offset, int whence)
Definition: safileio.c:127
int(* FClose)(SAFile file)
Definition: shapefil.h:261
void SADError(const char *message)
Definition: safileio.c:185
SAOffset SADFWrite(void *p, SAOffset size, SAOffset nmemb, SAFile file)
Definition: safileio.c:115
int SADFFlush(SAFile file)
Definition: safileio.c:155
SAOffset(* FWrite)(void *p, SAOffset size, SAOffset nmemb, SAFile file)
Definition: shapefil.h:257
int SADFClose(SAFile file)
Definition: safileio.c:165
int(* Remove)(const char *filename)
Definition: shapefil.h:262
int SADRemove(const char *filename)
Definition: safileio.c:175
double(* Atof)(const char *str)
Definition: shapefil.h:265
SAOffset(* FSeek)(SAFile file, SAOffset offset, int whence)
Definition: shapefil.h:258
SAFile(* FOpen)(const char *filename, const char *access)
Definition: shapefil.h:255
void(* Error)(const char *message)
Definition: shapefil.h:264
SAOffset(* FRead)(void *p, SAOffset size, SAOffset nmemb, SAFile file)
Definition: shapefil.h:256
SAOffset SADFRead(void *p, SAOffset size, SAOffset nmemb, SAFile file)
Definition: safileio.c:104
Here is the call graph for this function:
Here is the caller graph for this function: