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


These are functions which find/supplement lists of devices.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eeze__Find_ga8b406caa3c663f23ec969f09a8d356a2}{eeze\+\_\+udev\+\_\+find\+\_\+unlisted\+\_\+similar}} (\mbox{\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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\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 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eeze__Find_ga5268a31f804aa7c7cea4ebfc23d92ca8}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+type}} (\mbox{\hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\+\_\+\+Udev\+\_\+\+Type}} type, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Find devices using an \mbox{\hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\+\_\+\+Udev\+\_\+\+Type}} and/or a name. \end{DoxyCompactList}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\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}\item 
\mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__Eeze__Find_ga2e96a39613e6290e73eba5e7abf29b5f}{eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+subsystem\+\_\+sysname}} (const char $\ast$subsystem, const char $\ast$sysname)
\begin{DoxyCompactList}\small\item\em A more advanced find, allows finds using udev subsystem and sysname. \end{DoxyCompactList}\end{DoxyCompactItemize}


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



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eeze__Find_ga1aec84e9d1a689d61b17ff48ca344fc9}\label{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}}
\doxysubsubsection{\texorpdfstring{eeze\_udev\_find\_similar\_from\_syspath()}{eeze\_udev\_find\_similar\_from\_syspath()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}$\ast$ eeze\+\_\+udev\+\_\+find\+\_\+similar\+\_\+from\+\_\+syspath (\begin{DoxyParamCaption}\item[{const char $\ast$}]{syspath }\end{DoxyParamCaption})}



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 EINA\+\_\+\+LIST\+\_\+\+FOREACH, eina\+\_\+list\+\_\+prepend(), and eina\+\_\+stringshare\+\_\+add().

\mbox{\Hypertarget{group__Eeze__Find_ga8b406caa3c663f23ec969f09a8d356a2}\label{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}}
\doxysubsubsection{\texorpdfstring{eeze\_udev\_find\_unlisted\_similar()}{eeze\_udev\_find\_unlisted\_similar()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}$\ast$ eeze\+\_\+udev\+\_\+find\+\_\+unlisted\+\_\+similar (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$}]{list }\end{DoxyParamCaption})}



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 EINA\+\_\+\+LIST\+\_\+\+FOREACH.

\mbox{\Hypertarget{group__Eeze__Find_ga059c64702007f80c703ef68baa2aecc8}\label{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}}
\doxysubsubsection{\texorpdfstring{eeze\_udev\_find\_by\_sysattr()}{eeze\_udev\_find\_by\_sysattr()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}$\ast$ eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+sysattr (\begin{DoxyParamCaption}\item[{const char $\ast$}]{sysattr,  }\item[{const char $\ast$}]{value }\end{DoxyParamCaption})}



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().

\mbox{\Hypertarget{group__Eeze__Find_ga5268a31f804aa7c7cea4ebfc23d92ca8}\label{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}}
\doxysubsubsection{\texorpdfstring{eeze\_udev\_find\_by\_type()}{eeze\_udev\_find\_by\_type()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}$\ast$ eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+type (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{Eeze_8h_a9001d923dc7c65860cbd2e83ac5ec65c}{Eeze\+\_\+\+Udev\+\_\+\+Type}}}]{type,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



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


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

References EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+BACKLIGHT, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+BLUETOOTH, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+DRIVE\+\_\+\+CDROM, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+DRIVE\+\_\+\+INTERNAL, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+DRIVE\+\_\+\+MOUNTABLE, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+DRIVE\+\_\+\+REMOVABLE, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+DRM, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+GPIO, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+GRAPHICS, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+IS\+\_\+\+IT\+\_\+\+HOT\+\_\+\+OR\+\_\+\+IS\+\_\+\+IT\+\_\+\+COLD\+\_\+\+SENSOR, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+JOYSTICK, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+KEYBOARD, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+LEDS, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+MOUSE, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+NET, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+NONE, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+POWER\+\_\+\+AC, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+POWER\+\_\+\+BAT, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+TOUCHPAD, EEZE\+\_\+\+UDEV\+\_\+\+TYPE\+\_\+\+V4L, eina\+\_\+list\+\_\+append(), and eina\+\_\+stringshare\+\_\+add().



Referenced by ecore\+\_\+drm\+\_\+device\+\_\+find().

\mbox{\Hypertarget{group__Eeze__Find_ga52d43024fd5b09c4a020e4eeaf7b9970}\label{group__Eeze__Find_ga52d43024fd5b09c4a020e4eeaf7b9970}} 
\index{Find@{Find}!eeze\_udev\_find\_by\_filter@{eeze\_udev\_find\_by\_filter}}
\index{eeze\_udev\_find\_by\_filter@{eeze\_udev\_find\_by\_filter}!Find@{Find}}
\doxysubsubsection{\texorpdfstring{eeze\_udev\_find\_by\_filter()}{eeze\_udev\_find\_by\_filter()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{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})}



A more advanced find, allows finds using udev properties. 


\begin{DoxyParams}{Parameters}
{\em subsystem} & The udev subsystem to filter by, or {\ttfamily NULL} \\
\hline
{\em type} & \char`\"{}\+ID\+\_\+\+INPUT\+\_\+\+KEY\char`\"{}, \char`\"{}\+ID\+\_\+\+INPUT\+\_\+\+MOUSE\char`\"{}, \char`\"{}\+ID\+\_\+\+INPUT\+\_\+\+TOUCHPAD\char`\"{}, {\ttfamily NULL}, etc \\
\hline
{\em name} & A filter for the device name, or {\ttfamily NULL} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A stringshared Eina\+\_\+\+List$\ast$ of matched devices or {\ttfamily NULL} 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().

\mbox{\Hypertarget{group__Eeze__Find_ga2e96a39613e6290e73eba5e7abf29b5f}\label{group__Eeze__Find_ga2e96a39613e6290e73eba5e7abf29b5f}} 
\index{Find@{Find}!eeze\_udev\_find\_by\_subsystem\_sysname@{eeze\_udev\_find\_by\_subsystem\_sysname}}
\index{eeze\_udev\_find\_by\_subsystem\_sysname@{eeze\_udev\_find\_by\_subsystem\_sysname}!Find@{Find}}
\doxysubsubsection{\texorpdfstring{eeze\_udev\_find\_by\_subsystem\_sysname()}{eeze\_udev\_find\_by\_subsystem\_sysname()}}
{\footnotesize\ttfamily \mbox{\hyperlink{Elua_8h_a3db3556eec8ef18cb8ddb43816974ac8}{EAPI}} \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}}$\ast$ eeze\+\_\+udev\+\_\+find\+\_\+by\+\_\+subsystem\+\_\+sysname (\begin{DoxyParamCaption}\item[{const char $\ast$}]{subsystem,  }\item[{const char $\ast$}]{sysname }\end{DoxyParamCaption})}



A more advanced find, allows finds using udev subsystem and sysname. 


\begin{DoxyParams}{Parameters}
{\em subsystem} & The udev subsystem to filter by, or {\ttfamily NULL} \\
\hline
{\em sysname} & A filter for the device name, or {\ttfamily NULL} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A stringshared Eina\+\_\+\+List$\ast$ of matched devices or {\ttfamily NULL} on failure

A stringshared list of the devices found
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+13
\end{DoxySince}
EAPI 

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



Referenced by ecore\+\_\+drm\+\_\+inputs\+\_\+device\+\_\+axis\+\_\+size\+\_\+set().

