PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ SASetupDefaultHooks()

void SASetupDefaultHooks ( SAHooks psHooks)

Definition at line 194 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().

196 {
197  psHooks->FOpen = SADFOpen;
198  psHooks->FRead = SADFRead;
199  psHooks->FWrite = SADFWrite;
200  psHooks->FSeek = SADFSeek;
201  psHooks->FTell = SADFTell;
202  psHooks->FFlush = SADFFlush;
203  psHooks->FClose = SADFClose;
204  psHooks->Remove = SADRemove;
205 
206  psHooks->Error = SADError;
207  psHooks->Atof = atof;
208 }
SAFile SADFOpen(const char *pszFilename, const char *pszAccess)
Definition: safileio.c:94
SAOffset SADFTell(SAFile file)
Definition: safileio.c:140
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:126
int(* FClose)(SAFile file)
Definition: shapefil.h:261
void SADError(const char *message)
Definition: safileio.c:184
SAOffset SADFWrite(void *p, SAOffset size, SAOffset nmemb, SAFile file)
Definition: safileio.c:115
int SADFFlush(SAFile file)
Definition: safileio.c:154
SAOffset(* FWrite)(void *p, SAOffset size, SAOffset nmemb, SAFile file)
Definition: shapefil.h:257
int SADFClose(SAFile file)
Definition: safileio.c:164
int(* Remove)(const char *filename)
Definition: shapefil.h:262
int SADRemove(const char *filename)
Definition: safileio.c:174
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: