\doxysection{Determine Object Type of a File }
\hypertarget{group__objectdetector}{}\label{group__objectdetector}\index{Determine Object Type of a File@{Determine Object Type of a File}}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{group__objectdetector_gade71fd615031d58fda72a73a0dfeecfd}\label{group__objectdetector_gade71fd615031d58fda72a73a0dfeecfd} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+object\+\_\+detector\+\_\+path\+\_\+b} (const char \texorpdfstring{$\ast$}{*}dw\+\_\+path, char \texorpdfstring{$\ast$}{*}dw\+\_\+outpath\+\_\+buffer, unsigned long dw\+\_\+outpathlen, char \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}dw\+\_\+gl\+\_\+pathnames, unsigned int dw\+\_\+gl\+\_\+pathcount, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+ftype, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+endian, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+offsetsize, \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} \texorpdfstring{$\ast$}{*}dw\+\_\+filesize, unsigned char \texorpdfstring{$\ast$}{*}dw\+\_\+pathsource, int \texorpdfstring{$\ast$}{*}dw\+\_\+errcode)
\item 
\Hypertarget{group__objectdetector_ga7b51bbc68e7748772a193fb3eaeb6bf0}\label{group__objectdetector_ga7b51bbc68e7748772a193fb3eaeb6bf0} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+object\+\_\+detector\+\_\+path\+\_\+d\+SYM} (const char \texorpdfstring{$\ast$}{*}dw\+\_\+path, char \texorpdfstring{$\ast$}{*}dw\+\_\+outpath, unsigned long dw\+\_\+outpath\+\_\+len, char \texorpdfstring{$\ast$}{*}\texorpdfstring{$\ast$}{*}dw\+\_\+gl\+\_\+pathnames, unsigned int dw\+\_\+gl\+\_\+pathcount, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+ftype, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+endian, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+offsetsize, \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} \texorpdfstring{$\ast$}{*}dw\+\_\+filesize, unsigned char \texorpdfstring{$\ast$}{*}dw\+\_\+pathsource, int \texorpdfstring{$\ast$}{*}dw\+\_\+errcode)
\item 
\Hypertarget{group__objectdetector_gae7a58a178adf163affdba35b6880e1e5}\label{group__objectdetector_gae7a58a178adf163affdba35b6880e1e5} 
DW\+\_\+\+API int {\bfseries dwarf\+\_\+object\+\_\+detector\+\_\+fd} (int dw\+\_\+fd, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+ftype, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+endian, unsigned int \texorpdfstring{$\ast$}{*}dw\+\_\+offsetsize, \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\+\_\+\+Unsigned}} \texorpdfstring{$\ast$}{*}dw\+\_\+filesize, int \texorpdfstring{$\ast$}{*}dw\+\_\+errcode)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This group of functions are unlikely to be called by your code unless your code needs to know the basic data about an object file without actually opening a \doxylink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\+\_\+\+Debug}.

These are crucial for libdwarf itself. The dw\+\_\+ftype returned is one of DW\+\_\+\+FTYPE\+\_\+\+ELF, DW\+\_\+\+FTYPE\+\_\+\+PE, DW\+\_\+\+FTYPE\+\_\+\+MACH\+\_\+O, or DW\+\_\+\+FTYPE\+\_\+\+APPLEUNIVERSAL.

These are not meant to deal with a specific binary inside a Macos Universal Binary (DW\+\_\+\+FTYPE\+\_\+\+APPLEUNIVERSAL). 