\hypertarget{group__Eeze__Find}{\section{Find}
\label{group__Eeze__Find}\index{Find@{Find}}
}


These are functions which find/supplement lists of devices.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\-\_\-\-List} $\ast$ \hyperlink{group__Eeze__Find_ga1aec84e9d1a689d61b17ff48ca344fc9}{eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath} (const char $\ast$syspath)
\begin{DoxyCompactList}\small\item\em Returns a stringshared list of all syspaths that are (or should be) the same device as the device pointed at by {\ttfamily syspath}. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\-\_\-\-List} $\ast$ \hyperlink{group__Eeze__Find_ga8b406caa3c663f23ec969f09a8d356a2}{eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar} (\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\-\_\-\-List} $\ast$list)
\begin{DoxyCompactList}\small\item\em Updates a list of all syspaths that are (or should be) the same device. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\-\_\-\-List} $\ast$ \hyperlink{group__Eeze__Find_ga059c64702007f80c703ef68baa2aecc8}{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr} (const char $\ast$sysattr, const char $\ast$value)
\begin{DoxyCompactList}\small\item\em Find a list of devices by a sysattr (and, optionally, a value of that sysattr). \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\-\_\-\-List} $\ast$ \hyperlink{group__Eeze__Find_ga5268a31f804aa7c7cea4ebfc23d92ca8}{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type} (\hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\-\_\-\-Udev\-\_\-\-Type} type, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Find devices using an \hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\-\_\-\-Udev\-\_\-\-Type} and/or a name. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\-A\-P\-I} \hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\-\_\-\-List} $\ast$ \hyperlink{group__Eeze__Find_ga52d43024fd5b09c4a020e4eeaf7b9970}{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-filter} (const char $\ast$subsystem, const char $\ast$type, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em A more advanced find, allows finds using udev properties. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
These are functions which find/supplement lists of devices. 

\subsection{Function Documentation}
\hypertarget{group__Eeze__Find_ga1aec84e9d1a689d61b17ff48ca344fc9}{\index{Find@{Find}!eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath@{eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath}}
\index{eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath@{eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath}!Find@{Find}}
\subsubsection[{eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-List}$\ast$ eeze\-\_\-udev\-\_\-find\-\_\-similar\-\_\-from\-\_\-syspath (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{syspath}
\end{DoxyParamCaption}
)}}\label{group__Eeze__Find_ga1aec84e9d1a689d61b17ff48ca344fc9}


Returns a stringshared list of all syspaths that are (or should be) the same device as the device pointed at by {\ttfamily syspath}. 


\begin{DoxyParams}{Parameters}
{\em syspath} & The syspath of the device to find matches for \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
All devices which are the same as the one passed 
\end{DoxyReturn}


References E\-I\-N\-A\-\_\-\-L\-I\-S\-T\-\_\-\-F\-O\-R\-E\-A\-C\-H, eina\-\_\-list\-\_\-prepend(), and eina\-\_\-stringshare\-\_\-add().

\hypertarget{group__Eeze__Find_ga8b406caa3c663f23ec969f09a8d356a2}{\index{Find@{Find}!eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar@{eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar}}
\index{eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar@{eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar}!Find@{Find}}
\subsubsection[{eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-List}$\ast$ eeze\-\_\-udev\-\_\-find\-\_\-unlisted\-\_\-similar (
\begin{DoxyParamCaption}
\item[{{\bf Eina\-\_\-\-List} $\ast$}]{list}
\end{DoxyParamCaption}
)}}\label{group__Eeze__Find_ga8b406caa3c663f23ec969f09a8d356a2}


Updates a list of all syspaths that are (or should be) the same device. 


\begin{DoxyParams}{Parameters}
{\em list} & The list of devices to update \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The updated list
\end{DoxyReturn}
This function will update {\ttfamily list} to include all devices matching devices with syspaths currently stored in {\ttfamily list}. All strings are stringshared.

\begin{DoxyNote}{Note}
This is an expensive call, do not use it unless you must. 
\end{DoxyNote}


References E\-I\-N\-A\-\_\-\-L\-I\-S\-T\-\_\-\-F\-O\-R\-E\-A\-C\-H.

\hypertarget{group__Eeze__Find_ga059c64702007f80c703ef68baa2aecc8}{\index{Find@{Find}!eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr@{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr}}
\index{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr@{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr}!Find@{Find}}
\subsubsection[{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-List}$\ast$ eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-sysattr (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{sysattr, }
\item[{const char $\ast$}]{value}
\end{DoxyParamCaption}
)}}\label{group__Eeze__Find_ga059c64702007f80c703ef68baa2aecc8}


Find a list of devices by a sysattr (and, optionally, a value of that sysattr). 


\begin{DoxyParams}{Parameters}
{\em sysattr} & The attribute to find \\
\hline
{\em value} & Optional\-: the value that the attribute should have\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A stringshared list of the devices found with the attribute 
\end{DoxyReturn}


References eina\-\_\-list\-\_\-append(), and eina\-\_\-stringshare\-\_\-add().

\hypertarget{group__Eeze__Find_ga5268a31f804aa7c7cea4ebfc23d92ca8}{\index{Find@{Find}!eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type@{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type}}
\index{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type@{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type}!Find@{Find}}
\subsubsection[{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-List}$\ast$ eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-type (
\begin{DoxyParamCaption}
\item[{{\bf Eeze\-\_\-\-Udev\-\_\-\-Type}}]{type, }
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}\label{group__Eeze__Find_ga5268a31f804aa7c7cea4ebfc23d92ca8}


Find devices using an \hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\-\_\-\-Udev\-\_\-\-Type} and/or a name. 


\begin{DoxyParams}{Parameters}
{\em type} & An \hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\-\_\-\-Udev\-\_\-\-Type} or 0 \\
\hline
{\em name} & A filter for the device name or {\ttfamily N\-U\-L\-L} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A stringshared Eina\-\_\-\-List of matched devices or {\ttfamily N\-U\-L\-L} on failure
\end{DoxyReturn}
Return a list of syspaths (/sys/\$syspath) for matching udev devices. 

References E\-E\-Z\-E\-\_\-\-U\-D\-E\-V\-\_\-\-T\-Y\-P\-E\-\_\-\-B\-L\-U\-E\-T\-O\-O\-T\-H, E\-E\-Z\-E\-\_\-\-U\-D\-E\-V\-\_\-\-T\-Y\-P\-E\-\_\-\-D\-R\-I\-V\-E\-\_\-\-C\-D\-R\-O\-M, E\-E\-Z\-E\-\_\-\-U\-D\-E\-V\-\_\-\-T\-Y\-P\-E\-\_\-\-D\-R\-I\-V\-E\-\_\-\-I\-N\-T\-E\-R\-N\-A\-L, E\-E\-Z\-E\-\_\-\-U\-D\-E\-V\-\_\-\-T\-Y\-P\-E\-\_\-\-D\-R\-I\-V\-E\-\_\-\-M\-O\-U\-N\-T\-A\-B\-L\-E, E\-E\-Z\-E\-\_\-\-U\-D\-E\-V\-\_\-\-T\-Y\-P\-E\-\_\-\-D\-R\-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\-\_\-by\-\_\-filter}}
\index{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-filter@{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-filter}!Find@{Find}}
\subsubsection[{eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-filter}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\-A\-P\-I} {\bf Eina\-\_\-\-List}$\ast$ eeze\-\_\-udev\-\_\-find\-\_\-by\-\_\-filter (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{subsystem, }
\item[{const char $\ast$}]{type, }
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}\label{group__Eeze__Find_ga52d43024fd5b09c4a020e4eeaf7b9970}


A more advanced find, allows finds using udev properties. 


\begin{DoxyParams}{Parameters}
{\em subsystem} & The udev subsystem to filter by, or {\ttfamily N\-U\-L\-L} \\
\hline
{\em type} & \char`\"{}\-I\-D\-\_\-\-I\-N\-P\-U\-T\-\_\-\-K\-E\-Y\char`\"{}, \char`\"{}\-I\-D\-\_\-\-I\-N\-P\-U\-T\-\_\-\-M\-O\-U\-S\-E\char`\"{}, \char`\"{}\-I\-D\-\_\-\-I\-N\-P\-U\-T\-\_\-\-T\-O\-U\-C\-H\-P\-A\-D\char`\"{}, {\ttfamily N\-U\-L\-L}, etc \\
\hline
{\em name} & A filter for the device name, or {\ttfamily N\-U\-L\-L} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A stringshared Eina\-\_\-\-List$\ast$ of matched devices or {\ttfamily N\-U\-L\-L} on failure
\end{DoxyReturn}
Return a list of syspaths (/sys/\$syspath) for matching udev devices. Requires at least one filter. 

References eina\-\_\-list\-\_\-append(), and eina\-\_\-stringshare\-\_\-add().

