\hypertarget{group__Eina__Prefix__Group}{\section{Prefix Group}
\label{group__Eina__Prefix__Group}\index{Prefix Group@{Prefix Group}}
}


These functions provide the ability to determine the runtime location of a software package.  


\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \-\_\-\-Eina\-\_\-\-Prefix \hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix}
\begin{DoxyCompactList}\small\item\em This is a prefix object that is returned by \hyperlink{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{eina\-\_\-prefix\-\_\-new()} when trying to determine the runtime location of the software in question so other data files such as images, sound files, other executable utilities, libraries, modules and locale files can be found. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$ \hyperlink{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{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 Create a new prefix handle given some input information. \end{DoxyCompactList}\item 
void \hyperlink{group__Eina__Prefix__Group_ga65e0df5dc859d63c95b885cc1682be10}{eina\-\_\-prefix\-\_\-free} (\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Free the prefix object and all its contents. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Eina__Prefix__Group_ga8892f868975666602d7b0d9b23ee1a5e}{eina\-\_\-prefix\-\_\-get} (\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Get the prefix base directory. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Eina__Prefix__Group_ga0330375b538fe932aa892386d9241823}{eina\-\_\-prefix\-\_\-bin\-\_\-get} (\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Get the binary installation directory. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Eina__Prefix__Group_ga52216034692a523f90c5d90167041a48}{eina\-\_\-prefix\-\_\-lib\-\_\-get} (\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Get the library installation directory. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Eina__Prefix__Group_ga26034e5a259d72fc535278cabf90a410}{eina\-\_\-prefix\-\_\-data\-\_\-get} (\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Get the data installation directory. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Eina__Prefix__Group_ga331ef2cf3447036408a0a0d21c666cce}{eina\-\_\-prefix\-\_\-locale\-\_\-get} (\hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\-\_\-\-Prefix} $\ast$pfx)
\begin{DoxyCompactList}\small\item\em Get the locale installation directory. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
These functions provide the ability to determine the runtime location of a software package. \begin{DoxySince}{Since}
1.\-1.\-0 
\end{DoxySince}


\subsection{Typedef Documentation}
\hypertarget{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{\index{Prefix Group@{Prefix Group}!Eina\-\_\-\-Prefix@{Eina\-\_\-\-Prefix}}
\index{Eina\-\_\-\-Prefix@{Eina\-\_\-\-Prefix}!Prefix Group@{Prefix Group}}
\subsubsection[{Eina\-\_\-\-Prefix}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\-\_\-\-Prefix}}}\label{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}


This is a prefix object that is returned by \hyperlink{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{eina\-\_\-prefix\-\_\-new()} when trying to determine the runtime location of the software in question so 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}


\subsection{Function Documentation}
\hypertarget{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-new@{eina\-\_\-prefix\-\_\-new}}
\index{eina\-\_\-prefix\-\_\-new@{eina\-\_\-prefix\-\_\-new}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}{\bf 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}
)}}\label{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}


Create a new prefix handle given some input information. 


\begin{DoxyParams}{Parameters}
{\em argv0} & If this is an executable this is argv\mbox{[}0\mbox{]} of the binary, or {\ttfamily N\-U\-L\-L} if it is used from a shared library \\
\hline
{\em symbol} & This is a symbol (function for example) inside the binary or library to find the source location of. Provide {\ttfamily N\-U\-L\-L} if not used \\
\hline
{\em envprefix} & This is the prefix to any environment variables that may override prefix detection and give the exact location of the software \\
\hline
{\em sharedir} & This is the directory inside the standard share or data dir where the software will store data files \\
\hline
{\em magicsharefile} & This is a magic file to check existence of to determine the prefix find was correct, and it must be located in the data dir under the share dir provided above, or {\ttfamily N\-U\-L\-L} if the check is not to be done. \\
\hline
{\em pkg\-\_\-bin} & This is the compile-\/time binary install dir \\
\hline
{\em pkg\-\_\-lib} & This is the compile-\/time library install dir \\
\hline
{\em pkg\-\_\-data} & This is the compile-\/time share/data install dir \\
\hline
{\em pkg\-\_\-locale} & This is the compile-\/time locale install dir \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The prefix handle, or {\ttfamily N\-U\-L\-L} 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 they have to load, extra binary utilities they need to run, or have data files they need to load. A very primitive application A\-S\-S\-U\-M\-E\-S a fixed install location at compile-\/time, but this disallows the ability to re-\/locate 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 re-\/locatable 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 \hyperlink{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{eina\-\_\-prefix\-\_\-new()}. If you have developed a binary executable, then provide argv\mbox{[}0\mbox{]} as the {\ttfamily argv0} argument. This plus the P\-A\-T\-H environment variable help the prefix system to determine its location. Call \hyperlink{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{eina\-\_\-prefix\-\_\-new()} early on before you change working directory or anything about argv\mbox{[}0\mbox{]} so it gets accurate information. It will use the first argument, being the executable itself, to look in absolute directories, relative paths and P\-A\-T\-H 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 share library, just pass {\ttfamily N\-U\-L\-L} as argv0

It would prefer to use the {\ttfamily symbol} function to determine location as that function will be 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 {\ttfamily argv0}. It will use this symbol if given in preference to argv0.

The {\ttfamily 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`\"{}\-M\-Y\-A\-P\-P\char`\"{} is provided a the prefix, then it uses \char`\"{}\-M\-Y\-A\-P\-P\-\_\-\-P\-R\-E\-F\-I\-X\char`\"{} as a master environment variable to specify the exact install prefix for the software, or more specific environment variables like \char`\"{}\-M\-Y\-A\-P\-P\-\_\-\-B\-I\-N\-\_\-\-D\-I\-R\char`\"{}, \char`\"{}\-M\-Y\-A\-P\-P\-\_\-\-L\-I\-B\-\_\-\-D\-I\-R\char`\"{}, \char`\"{}\-M\-Y\-A\-P\-P\-\_\-\-D\-A\-T\-A\-\_\-\-D\-I\-R\char`\"{} and \char`\"{}\-M\-Y\-A\-P\-P\-\_\-\-L\-O\-C\-A\-L\-E\-\_\-\-D\-I\-R\char`\"{} which can be set by the user or scripts before launching. If not provided (N\-U\-L\-L) environment variables will not be used to override compiled-\/in defaults or auto detections.

The {\ttfamily 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 was the \char`\"{}appname\char`\"{} string. It is expected the application or library installs data files in this directory.

The {\ttfamily 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 will install 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 {\ttfamily magicsharefile} string so detection can know if it worked or not.

The {\ttfamily pkg\-\_\-bin}, {\ttfamily pkg\-\_\-lib}, {\ttfamily pkg\-\_\-data} and {\ttfamily pkg\-\_\-locale} are compile-\/time strings (the kind standard autoconf/automake define) to be passed in so 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 etc.

Compile the following defining at compile time your prefixes like (example)\-:

gcc appname.\-c -\/o appname -\/\-D\-P\-A\-C\-K\-A\-G\-E\-\_\-\-B\-I\-N\-\_\-\-D\-I\-R=\textbackslash{}\char`\"{}/usr/local/bin\textbackslash{}\char`\"{} -\/\-D\-P\-A\-C\-K\-A\-G\-E\-\_\-\-L\-I\-B\-\_\-\-D\-I\-R=\textbackslash{}\char`\"{}/usr/local/lib\textbackslash{}\char`\"{} -\/\-D\-P\-A\-C\-K\-A\-G\-E\-\_\-\-D\-A\-T\-A\-\_\-\-D\-I\-R=\textbackslash{}\char`\"{}/usr/local/share/appname\textbackslash{}\char`\"{} -\/\-D\-L\-O\-C\-A\-L\-E\-\_\-\-D\-I\-R=\textbackslash{}\char`\"{}/usr/local/share/locale\textbackslash{}\char`\"{} {\ttfamily pkg-\/config -\/-\/cflags -\/-\/libs eina}

(of course add appropriate compile flags to linking etc. etc. and note that locale dir is optional. if you don'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 (eg /usr/local/share/appname) and be referred to using a unix-\/style relative path from that dir, eg directory/filename.\-png)


\begin{DoxyCode}
\textcolor{preprocessor}{#include <\hyperlink{Eina_8h}{Eina.h}>}

\textcolor{keyword}{static} \hyperlink{group__Eina__Prefix__Group_ga5aa9df62e665fe6cc10d10d5ea63e2da}{Eina\_Prefix} *pfx = NULL;

\textcolor{keywordtype}{int} main(\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} **argv)
\{
  \hyperlink{group__Eina__Main__Group_gabf448ada5bc81a07342b66c6f818ee5e}{eina\_init}();

  pfx = \hyperlink{group__Eina__Prefix__Group_ga93628783bb571b56b4e9bc55a18187ad}{eina\_prefix\_new}(argv[0], main, \textcolor{stringliteral}{"APPNAME"}, \textcolor{stringliteral}{"appname"}, NULL,
                        PACKAGE\_BIN\_DIR, PACKAGE\_LIB\_DIR,
                        PACKAGE\_DATA\_DIR, LOCALE\_DIR);
  \textcolor{keywordflow}{if} (!pfx) printf(\textcolor{stringliteral}{"ERROR: Critical error in finding prefix\(\backslash\)n"});
  printf(\textcolor{stringliteral}{"install prefix is: %s\(\backslash\)n"}, \hyperlink{group__Eina__Prefix__Group_ga8892f868975666602d7b0d9b23ee1a5e}{eina\_prefix\_get}(pfx));
  printf(\textcolor{stringliteral}{"binaries are in: %s\(\backslash\)n"}, \hyperlink{group__Eina__Prefix__Group_ga0330375b538fe932aa892386d9241823}{eina\_prefix\_bin\_get}(pfx));
  printf(\textcolor{stringliteral}{"libraries are in: %s\(\backslash\)n"}, \hyperlink{group__Eina__Prefix__Group_ga52216034692a523f90c5d90167041a48}{eina\_prefix\_lib\_get}(pfx));
  printf(\textcolor{stringliteral}{"data files are in: %s\(\backslash\)n"}, \hyperlink{group__Eina__Prefix__Group_ga26034e5a259d72fc535278cabf90a410}{eina\_prefix\_data\_get}(pfx));
  \hyperlink{group__Eina__Prefix__Group_ga65e0df5dc859d63c95b885cc1682be10}{eina\_prefix\_free}(pfx);

  \hyperlink{group__Eina__Main__Group_ga6741fcaba116e31e96ce14dcfa03f568}{eina\_shutdown}();
\}
\end{DoxyCode}


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


References dladdr(), Dl\-\_\-info\-::dli\-\_\-fname, E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E, and E\-I\-N\-A\-\_\-\-T\-R\-U\-E.



Referenced by ecore\-\_\-init().

\hypertarget{group__Eina__Prefix__Group_ga65e0df5dc859d63c95b885cc1682be10}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-free@{eina\-\_\-prefix\-\_\-free}}
\index{eina\-\_\-prefix\-\_\-free@{eina\-\_\-prefix\-\_\-free}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-free}]{\setlength{\rightskip}{0pt plus 5cm}void eina\-\_\-prefix\-\_\-free (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-Prefix} $\ast$}]{pfx}
\end{DoxyParamCaption}
)}}\label{group__Eina__Prefix__Group_ga65e0df5dc859d63c95b885cc1682be10}


Free the prefix object and all its contents. 


\begin{DoxyParams}{Parameters}
{\em pfx} & The prefix object\\
\hline
\end{DoxyParams}
Free the prefix object and all its allocated content. It will be invalid to access the object after being freed.

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


Referenced by ecore\-\_\-shutdown().

\hypertarget{group__Eina__Prefix__Group_ga8892f868975666602d7b0d9b23ee1a5e}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-get@{eina\-\_\-prefix\-\_\-get}}
\index{eina\-\_\-prefix\-\_\-get@{eina\-\_\-prefix\-\_\-get}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ eina\-\_\-prefix\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-Prefix} $\ast$}]{pfx}
\end{DoxyParamCaption}
)}}\label{group__Eina__Prefix__Group_ga8892f868975666602d7b0d9b23ee1a5e}


Get the prefix base directory. 


\begin{DoxyParams}{Parameters}
{\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The base prefix (eg \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}
\hypertarget{group__Eina__Prefix__Group_ga0330375b538fe932aa892386d9241823}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-bin\-\_\-get@{eina\-\_\-prefix\-\_\-bin\-\_\-get}}
\index{eina\-\_\-prefix\-\_\-bin\-\_\-get@{eina\-\_\-prefix\-\_\-bin\-\_\-get}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-bin\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ eina\-\_\-prefix\-\_\-bin\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-Prefix} $\ast$}]{pfx}
\end{DoxyParamCaption}
)}}\label{group__Eina__Prefix__Group_ga0330375b538fe932aa892386d9241823}


Get the binary installation directory. 


\begin{DoxyParams}{Parameters}
{\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (eg \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}
\hypertarget{group__Eina__Prefix__Group_ga52216034692a523f90c5d90167041a48}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-lib\-\_\-get@{eina\-\_\-prefix\-\_\-lib\-\_\-get}}
\index{eina\-\_\-prefix\-\_\-lib\-\_\-get@{eina\-\_\-prefix\-\_\-lib\-\_\-get}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-lib\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ eina\-\_\-prefix\-\_\-lib\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-Prefix} $\ast$}]{pfx}
\end{DoxyParamCaption}
)}}\label{group__Eina__Prefix__Group_ga52216034692a523f90c5d90167041a48}


Get the library installation directory. 


\begin{DoxyParams}{Parameters}
{\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (eg \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}
\hypertarget{group__Eina__Prefix__Group_ga26034e5a259d72fc535278cabf90a410}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-data\-\_\-get@{eina\-\_\-prefix\-\_\-data\-\_\-get}}
\index{eina\-\_\-prefix\-\_\-data\-\_\-get@{eina\-\_\-prefix\-\_\-data\-\_\-get}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-data\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ eina\-\_\-prefix\-\_\-data\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-Prefix} $\ast$}]{pfx}
\end{DoxyParamCaption}
)}}\label{group__Eina__Prefix__Group_ga26034e5a259d72fc535278cabf90a410}


Get the data installation directory. 


\begin{DoxyParams}{Parameters}
{\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (eg \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}
\hypertarget{group__Eina__Prefix__Group_ga331ef2cf3447036408a0a0d21c666cce}{\index{Prefix Group@{Prefix Group}!eina\-\_\-prefix\-\_\-locale\-\_\-get@{eina\-\_\-prefix\-\_\-locale\-\_\-get}}
\index{eina\-\_\-prefix\-\_\-locale\-\_\-get@{eina\-\_\-prefix\-\_\-locale\-\_\-get}!Prefix Group@{Prefix Group}}
\subsubsection[{eina\-\_\-prefix\-\_\-locale\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ eina\-\_\-prefix\-\_\-locale\-\_\-get (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-Prefix} $\ast$}]{pfx}
\end{DoxyParamCaption}
)}}\label{group__Eina__Prefix__Group_ga331ef2cf3447036408a0a0d21c666cce}


Get the locale installation directory. 


\begin{DoxyParams}{Parameters}
{\em pfx} & The prefix object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The location of installed binaries (eg \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}
