\hypertarget{group__Eina__Prefix__Group}{}\doxysection{Prefix}
\label{group__Eina__Prefix__Group}\index{Prefix@{Prefix}}


This group discusses the functions that provide the ability to determine the runtime location of a software package.  


\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \+\_\+\+Eina\+\_\+\+Prefix \mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}}
\begin{DoxyCompactList}\small\item\em An opaque type for prefix handle. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$ \mbox{\hyperlink{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}{eina\+\_\+prefix\+\_\+new}} (const char $\ast$argv0, void $\ast$symbol, const char $\ast$envprefix, const char $\ast$sharedir, const char $\ast$magicsharefile, const char $\ast$pkg\+\_\+bin, const char $\ast$pkg\+\_\+lib, const char $\ast$pkg\+\_\+data, const char $\ast$pkg\+\_\+locale)
\begin{DoxyCompactList}\small\item\em Creates a new prefix handle given that some input information is provided. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Prefix__Group_ga5eb719d9e167358b990544a7d57374d3}{eina\+\_\+prefix\+\_\+free}} (\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Frees the prefix object and all its contents. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ \mbox{\hyperlink{group__Eina__Prefix__Group_ga00cf5ad4a7ac2e77d5fdf7ba8bed2932}{eina\+\_\+prefix\+\_\+get}} (\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Gets the prefix base directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ \mbox{\hyperlink{group__Eina__Prefix__Group_ga5974c10f03f11e1d7e8ada2422da7709}{eina\+\_\+prefix\+\_\+bin\+\_\+get}} (\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Gets the binary installation directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ \mbox{\hyperlink{group__Eina__Prefix__Group_gad6442c6f5c8428a31802ac37434d69bd}{eina\+\_\+prefix\+\_\+lib\+\_\+get}} (\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Gets the library installation directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ \mbox{\hyperlink{group__Eina__Prefix__Group_ga23d85bc49fcbde16b390a14de82d7c05}{eina\+\_\+prefix\+\_\+data\+\_\+get}} (\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Gets the data installation directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ \mbox{\hyperlink{group__Eina__Prefix__Group_ga3aba9663be5b7787e17911a1d9dc554b}{eina\+\_\+prefix\+\_\+locale\+\_\+get}} (\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Gets the locale installation directory. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This group discusses the functions that provide the ability to determine the runtime location of a software package. 

\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}\label{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}} 
\index{Prefix@{Prefix}!Eina\_Prefix@{Eina\_Prefix}}
\index{Eina\_Prefix@{Eina\_Prefix}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{Eina\_Prefix}{Eina\_Prefix}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}}}



An opaque type for prefix handle. 

This is a prefix object that is returned by \mbox{\hyperlink{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}{eina\+\_\+prefix\+\_\+new()}} when trying to determine the runtime location of the software in question so that other data files such as images, sound files, other executable utilities, libraries, modules, and locale files can be found.

\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}\label{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}} 
\index{Prefix@{Prefix}!eina\_prefix\_new@{eina\_prefix\_new}}
\index{eina\_prefix\_new@{eina\_prefix\_new}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_new()}{eina\_prefix\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$ eina\+\_\+prefix\+\_\+new (\begin{DoxyParamCaption}\item[{const char $\ast$}]{argv0,  }\item[{void $\ast$}]{symbol,  }\item[{const char $\ast$}]{envprefix,  }\item[{const char $\ast$}]{sharedir,  }\item[{const char $\ast$}]{magicsharefile,  }\item[{const char $\ast$}]{pkg\+\_\+bin,  }\item[{const char $\ast$}]{pkg\+\_\+lib,  }\item[{const char $\ast$}]{pkg\+\_\+data,  }\item[{const char $\ast$}]{pkg\+\_\+locale }\end{DoxyParamCaption})}



Creates a new prefix handle given that some input information is provided. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em argv0} & If this is an executable this is argv\mbox{[}0\mbox{]} of the binary, otherwise {\ttfamily NULL} if it is used from a shared library \\
\hline
\mbox{\texttt{ in}}  & {\em symbol} & A symbol (function for example) inside the binary or library to find the source location of, provide {\ttfamily NULL} if not used \\
\hline
\mbox{\texttt{ in}}  & {\em envprefix} & The prefix to any environment variable that may override prefix detection and give the exact location of the software \\
\hline
\mbox{\texttt{ in}}  & {\em sharedir} & The directory inside the standard share or data dir where the software stores data files \\
\hline
\mbox{\texttt{ in}}  & {\em magicsharefile} & A magic file to check existence of and determine whether the prefix found is correct, and it must be located in the data dir under the share dir provided above, or {\ttfamily NULL} if the check is not to be done \\
\hline
\mbox{\texttt{ in}}  & {\em pkg\+\_\+bin} & The compile-\/time binary install dir \\
\hline
\mbox{\texttt{ in}}  & {\em pkg\+\_\+lib} & The compile-\/time library install dir \\
\hline
\mbox{\texttt{ in}}  & {\em pkg\+\_\+data} & The compile-\/time share/data install dir \\
\hline
\mbox{\texttt{ in}}  & {\em pkg\+\_\+locale} & The compile-\/time locale install dir \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The prefix handle, otherwise {\ttfamily NULL} on failure
\end{DoxyReturn}
Applications and libraries are most often not just single executables nor single shared library binaries, but also come with extra modules that they have to load, extra binary utilities they need to run, or have data files that they need to load. A very primitive application ASSUMES a fixed install location at compile-\/time, but this disallows the ability to relocate the application (or library) somewhere else after compilation (if you run out of space on a given disk, partition, etc. for example), or necessitate the need for having to maintain environment variables for every piece of software to let it know its location, or have to use large sets of symlinks pointing from the compiled location to the new one.

Being relocatable at runtime allows much easier distribution and installation into places like the users own home directory, instead of on a system partition, if the developer wishes for easier distribution of pre-\/compiled binaries.

The prefix system is designed to locate where the given software is installed (under a common prefix) at runtime and then report specific locations of this prefix and common directories inside this prefix like the binary, library, data, and locale directories.

To do this some information needs to be provided to \mbox{\hyperlink{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}{eina\+\_\+prefix\+\_\+new()}}. If you have developed a binary executable, then provide argv\mbox{[}0\mbox{]} as the {\itshape argv0} argument. This plus the PATH environment variable helps the prefix system to determine its location. Call \mbox{\hyperlink{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}{eina\+\_\+prefix\+\_\+new()}} early on before you change the working directory or anything about argv\mbox{[}0\mbox{]}, so it gets accurate information. It uses the first argument, being the executable itself, to look in absolute directories, relative paths, and PATH to see if it finds the right executable to determine just where the actual binary is installed and being run from. If you develop a shared library, just pass {\ttfamily NULL} as {\itshape argv0}.

\begin{DoxyNote}{Note}
It would prefer to use the {\itshape symbol} function to determine the location as that function is unique inside the application and try and trace back which file this function comes from (be it a binary or shared library) as this avoids more expensive searches via {\itshape argv0}. It uses this symbol if given in preference to {\itshape argv0}.

The {\itshape envprefix} parameter provides a string prefix to prepend before environment variables to allow a fallback to specific environment variables to locate the software. For example, if \char`\"{}\+MYAPP\char`\"{} is provided as the prefix, then it uses \char`\"{}\+MYAPP\+\_\+\+PREFIX\char`\"{} as a master environment variable to specify the exact install prefix for the software, or more specific environment variables like \char`\"{}\+MYAPP\+\_\+\+BIN\+\_\+\+DIR\char`\"{}, \char`\"{}\+MYAPP\+\_\+\+LIB\+\_\+\+DIR\char`\"{}, \char`\"{}\+MYAPP\+\_\+\+DATA\+\_\+\+DIR\char`\"{}, and \char`\"{}\+MYAPP\+\_\+\+LOCALE\+\_\+\+DIR\char`\"{}, which can be set by the user or scripts before launching. If not provided (NULL) environment variables are not used to override compiled-\/in defaults or auto detections.

The {\itshape sharedir} string provides a subdirectory inside the system shared data dir for data files. For example, if the system dir is /usr/local/share then this dir name is appended, creating /usr/local/share/appname if this dir is the \char`\"{}appname\char`\"{} string. It is expected that the application or library installs data files in this directory.

The {\itshape magicsharefile} is a filename or path of something inside the share or data dir to be used to test that the prefix detection worked. For example, your app installs a wallpaper image as /usr/local/share/appname/images/wallpaper.jpg and so to check that this worked, provide \char`\"{}images/wallpaper.\+jpg\char`\"{} as the {\itshape magicsharefile} string so detection can know if it worked or not.

The {\itshape pkg\+\_\+bin}, {\itshape pkg\+\_\+lib}, {\itshape pkg\+\_\+data}, and {\itshape pkg\+\_\+locale} are compile-\/time strings (the kind standard autoconf/automake define) to be passed in so that there can be a fallback to compiled-\/in defaults as well as use them to determine actual names of directories like libdirs maybe changing to be lib32 or lib64 instead of lib, and so on.
\end{DoxyNote}
Compile the following defining at compile time your prefixes like (example)\+:

gcc appname.\+c -\/o appname -\/DPACKAGE\+\_\+\+BIN\+\_\+\+DIR=\textbackslash{}\char`\"{}/usr/local/bin\textbackslash{}\char`\"{} -\/\+DPACKAGE\+\_\+\+LIB\+\_\+\+DIR=\textbackslash{}\textbackslash{}\char`\"{}/usr/local/lib\textbackslash{}\char`\"{} -\/\+DPACKAGE\+\_\+\+DATA\+\_\+\+DIR=\textbackslash{}\textbackslash{}\char`\"{}/usr/local/share/appname\textbackslash{}\char`\"{} -\/\+DLOCALE\+\_\+\+DIR=\textbackslash{}\textbackslash{}\char`\"{}/usr/local/share/locale\textbackslash{}\char`\"{} $<$tt$>$pkg-\/config -\/-\/cflags -\/-\/libs eina$<$/tt$>$  (of course add appropriate compile flags to linking and note that locale dir is optional. If you don\textquotesingle{}t need it, provide data dir as the locale dir. Also note that the magicsharefile is optional for testing and ensuring that the prefix check is correct. This file must be installed in the application data dir (e.\+g. /usr/local/share/appname) and be referred to using a unix-\/style relative path from that dir, e.\+g. directory/filename.\+png)  @code  \#include $<$\+Eina.\+h$>$  static Eina\+\_\+\+Prefix $\ast$pfx = NULL;  int main(int argc, char $\ast$$\ast$argv) \{   eina\+\_\+init();    pfx = eina\+\_\+prefix\+\_\+new(argv\mbox{[}0\mbox{]}, main, \char`\"{}APPNAME\char`\"{}, \char`\"{}appname\char`\"{}, NULL,                         PACKAGE\+\_\+\+BIN\+\_\+\+DIR, PACKAGE\+\_\+\+LIB\+\_\+\+DIR,                         PACKAGE\+\_\+\+DATA\+\_\+\+DIR, LOCALE\+\_\+\+DIR);   if (!pfx) printf(\char`\"{}ERROR\+: Critical error in finding prefix~\newline
\char`\"{});   printf(\char`\"{}install prefix is\+: s~\newline
\char`\"{}, eina\+\_\+prefix\+\_\+get(pfx));   printf(\char`\"{}binaries are in\+: s~\newline
\char`\"{}, eina\+\_\+prefix\+\_\+bin\+\_\+get(pfx));   printf(\char`\"{}libraries are in\+: s~\newline
\char`\"{}, eina\+\_\+prefix\+\_\+lib\+\_\+get(pfx));   printf(\char`\"{}data files are in\+: s~\newline
"{}, eina\+\_\+prefix\+\_\+data\+\_\+get(pfx)); eina\+\_\+prefix\+\_\+free(pfx);

\mbox{\hyperlink{group__Eina__Main__Group_ga5bf35513199d5220341437c05696285d}{eina\+\_\+shutdown()}}; \} 

\begin{DoxySince}{Since}
1.\+1.\+0
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Prefix__Group_ga5eb719d9e167358b990544a7d57374d3}{eina\+\_\+prefix\+\_\+free()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{eina__alloca_8h_ae13861224cb6597c3171a910683cb5fc}{alloca()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}{eina\+\_\+file\+\_\+path\+\_\+join()}}, \mbox{\hyperlink{group__Eina__File__Group_ga307eb3ab937eca910a4905ca61edb1bc}{EINA\+\_\+\+PATH\+\_\+\+SEP\+\_\+C}}, \mbox{\hyperlink{group__Eina__File__Group_ga616ef146444c4337f8ef1d3cf96904a7}{EINA\+\_\+\+PATH\+\_\+\+SEP\+\_\+S}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Evil__Stdlib__Group_gac8926887ae0c84e25445bfed43f3c6cb}{realpath()}}.



Referenced by \mbox{\hyperlink{group__Ecore__Init__Group_ga77757609684a2c922dc5ec398274751b}{ecore\+\_\+init()}}, \mbox{\hyperlink{group__Elm__General_gab31fb3af2f25295fea1eb05f69724eb5}{elm\+\_\+quicklaunch\+\_\+init()}}, \mbox{\hyperlink{group__Elua_gacf7fc6f0386d30e4af4fcb8fd424c8dc}{elua\+\_\+init()}}, \mbox{\hyperlink{group__Emotion__API_ga5959f96c419207924c9935a9793706a5}{emotion\+\_\+init()}}, and \mbox{\hyperlink{group__Ethumb__Basics_ga3faacfc1fcfc59f18caa6696996633c8}{ethumb\+\_\+init()}}.

\mbox{\Hypertarget{group__Eina__Prefix__Group_ga5eb719d9e167358b990544a7d57374d3}\label{group__Eina__Prefix__Group_ga5eb719d9e167358b990544a7d57374d3}} 
\index{Prefix@{Prefix}!eina\_prefix\_free@{eina\_prefix\_free}}
\index{eina\_prefix\_free@{eina\_prefix\_free}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_free()}{eina\_prefix\_free()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+prefix\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$}]{pfx }\end{DoxyParamCaption})}



Frees the prefix object and all its contents. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pfx} & The prefix object\\
\hline
\end{DoxyParams}
This function frees the prefix object and all its allocated content. It is invalid to access the object after it is freed.

\begin{DoxySince}{Since}
1.\+1.\+0
\end{DoxySince}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}{eina\+\_\+prefix\+\_\+new()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.



Referenced by \mbox{\hyperlink{group__Ecore__Init__Group_ga768298b932f18d7e7593a447493e5cde}{ecore\+\_\+shutdown()}}, \mbox{\hyperlink{group__Elm__General_ga9fcc62ef962c1b166c693cfd6f2372e4}{elm\+\_\+quicklaunch\+\_\+shutdown()}}, \mbox{\hyperlink{group__Elua_ga8364635553424c58bdbb50f9bb842d9b}{elua\+\_\+shutdown()}}, \mbox{\hyperlink{group__Emotion__API_ga5959f96c419207924c9935a9793706a5}{emotion\+\_\+init()}}, \mbox{\hyperlink{group__Emotion__API_gac2efae65442ca95289fb273693195265}{emotion\+\_\+shutdown()}}, \mbox{\hyperlink{group__Ethumb__Basics_ga3faacfc1fcfc59f18caa6696996633c8}{ethumb\+\_\+init()}}, and \mbox{\hyperlink{group__Ethumb__Basics_ga8caed02a117a8dc08ffe4a1bc1b835df}{ethumb\+\_\+shutdown()}}.

\mbox{\Hypertarget{group__Eina__Prefix__Group_ga00cf5ad4a7ac2e77d5fdf7ba8bed2932}\label{group__Eina__Prefix__Group_ga00cf5ad4a7ac2e77d5fdf7ba8bed2932}} 
\index{Prefix@{Prefix}!eina\_prefix\_get@{eina\_prefix\_get}}
\index{eina\_prefix\_get@{eina\_prefix\_get}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_get()}{eina\_prefix\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ eina\+\_\+prefix\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$}]{pfx }\end{DoxyParamCaption})}



Gets the prefix base directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The base prefix (e.\+g. \char`\"{}/usr/local\char`\"{}, \char`\"{}/usr\char`\"{}, \char`\"{}/opt/appname\char`\"{} or \char`\"{}/home/user/myapps/appname\char`\"{}, etc.) that the software resides in at runtime
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Elm__App_gafae5f6ec500bc57ff474e8abe1bdb25a}{elm\+\_\+app\+\_\+prefix\+\_\+dir\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__Prefix__Group_ga5974c10f03f11e1d7e8ada2422da7709}\label{group__Eina__Prefix__Group_ga5974c10f03f11e1d7e8ada2422da7709}} 
\index{Prefix@{Prefix}!eina\_prefix\_bin\_get@{eina\_prefix\_bin\_get}}
\index{eina\_prefix\_bin\_get@{eina\_prefix\_bin\_get}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_bin\_get()}{eina\_prefix\_bin\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ eina\+\_\+prefix\+\_\+bin\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$}]{pfx }\end{DoxyParamCaption})}



Gets the binary installation directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (e.\+g. \char`\"{}/usr/local/bin\char`\"{}, \char`\"{}/usr/bin\char`\"{}, \char`\"{}/opt/appname/bin\char`\"{}, \char`\"{}/home/user/myapps/appname/bin\char`\"{} etc.)
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Elm__App_ga8782761ce61d2a86ddb7db565818cc81}{elm\+\_\+app\+\_\+bin\+\_\+dir\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__Prefix__Group_gad6442c6f5c8428a31802ac37434d69bd}\label{group__Eina__Prefix__Group_gad6442c6f5c8428a31802ac37434d69bd}} 
\index{Prefix@{Prefix}!eina\_prefix\_lib\_get@{eina\_prefix\_lib\_get}}
\index{eina\_prefix\_lib\_get@{eina\_prefix\_lib\_get}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_lib\_get()}{eina\_prefix\_lib\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ eina\+\_\+prefix\+\_\+lib\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$}]{pfx }\end{DoxyParamCaption})}



Gets the library installation directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (e.\+g. \char`\"{}/usr/local/lib\char`\"{}, \char`\"{}/usr/lib32\char`\"{}, \char`\"{}/opt/appname/lib64\char`\"{}, \char`\"{}/home/user/myapps/appname/lib\char`\"{} etc.)
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Elm__App_ga7b47caa13ef56e7bd9ea182cfc0a3f79}{elm\+\_\+app\+\_\+lib\+\_\+dir\+\_\+get()}}, and \mbox{\hyperlink{group__Elm__General_gab31fb3af2f25295fea1eb05f69724eb5}{elm\+\_\+quicklaunch\+\_\+init()}}.

\mbox{\Hypertarget{group__Eina__Prefix__Group_ga23d85bc49fcbde16b390a14de82d7c05}\label{group__Eina__Prefix__Group_ga23d85bc49fcbde16b390a14de82d7c05}} 
\index{Prefix@{Prefix}!eina\_prefix\_data\_get@{eina\_prefix\_data\_get}}
\index{eina\_prefix\_data\_get@{eina\_prefix\_data\_get}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_data\_get()}{eina\_prefix\_data\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ eina\+\_\+prefix\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$}]{pfx }\end{DoxyParamCaption})}



Gets the data installation directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (e.\+g. \char`\"{}/usr/local/share/appname\char`\"{}, \char`\"{}/usr/share/appname\char`\"{}, \char`\"{}/opt/appname/share/appname\char`\"{}, \char`\"{}/home/user/myapps/appname/share/appname\char`\"{} etc.)
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Elm__App_gab10cf98c5aa3936dfda01d6bca366d09}{elm\+\_\+app\+\_\+data\+\_\+dir\+\_\+get()}}, \mbox{\hyperlink{group__Elm__General_gab31fb3af2f25295fea1eb05f69724eb5}{elm\+\_\+quicklaunch\+\_\+init()}}, \mbox{\hyperlink{group__Elua_ga3ef02ac4acf29212793720849391d4b8}{elua\+\_\+state\+\_\+dirs\+\_\+fill()}}, and \mbox{\hyperlink{group__Emotion__API_ga5959f96c419207924c9935a9793706a5}{emotion\+\_\+init()}}.

\mbox{\Hypertarget{group__Eina__Prefix__Group_ga3aba9663be5b7787e17911a1d9dc554b}\label{group__Eina__Prefix__Group_ga3aba9663be5b7787e17911a1d9dc554b}} 
\index{Prefix@{Prefix}!eina\_prefix\_locale\_get@{eina\_prefix\_locale\_get}}
\index{eina\_prefix\_locale\_get@{eina\_prefix\_locale\_get}!Prefix@{Prefix}}
\doxysubsubsection{\texorpdfstring{eina\_prefix\_locale\_get()}{eina\_prefix\_locale\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ eina\+\_\+prefix\+\_\+locale\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\+\_\+\+Prefix}} $\ast$}]{pfx }\end{DoxyParamCaption})}



Gets the locale installation directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (e.\+g. \char`\"{}/usr/local/share/locale\char`\"{}, \char`\"{}/usr/share/locale\char`\"{}, \char`\"{}/opt/appname/share/locale\char`\"{}, \char`\"{}/home/user/myapps/appname/share/locale\char`\"{} etc.)
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1.\+0 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.



Referenced by \mbox{\hyperlink{group__Elm__App_gaea27758ca3ef67f220b71531fb6d5172}{elm\+\_\+app\+\_\+locale\+\_\+dir\+\_\+get()}}.

