\hypertarget{cpeuri_8c}{ \section{/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/cpeuri.c File Reference} \label{cpeuri_8c}\index{/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/cpeuri.c@{/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/cpeuri.c}} } Interface to Common Platform Enumeration (CPE) URI. {\ttfamily \#include $<$string.h$>$}\par {\ttfamily \#include $<$stdio.h$>$}\par {\ttfamily \#include $<$pcre.h$>$}\par {\ttfamily \#include $<$ctype.h$>$}\par {\ttfamily \#include \char`\"{}cpeuri.h\char`\"{}}\par {\ttfamily \#include \char`\"{}../common/util.h\char`\"{}}\par \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structcpe__name}{cpe\_\-name} \begin{DoxyCompactList}\small\item\em Structure holding Common Platform Enumeration URI data. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Defines} \begin{DoxyCompactItemize} \item \hypertarget{cpeuri_8c_ad3d8a3bd0c0b677acef144f2c2ef6d73}{ \#define {\bfseries \_\-BSD\_\-SOURCE}} \label{cpeuri_8c_ad3d8a3bd0c0b677acef144f2c2ef6d73} \item \hypertarget{cpeuri_8c_a7aab56689fced21a3cccd660bbfce024}{ \#define {\bfseries CPE\_\-URI\_\-SUPPORTED}~\char`\"{}2.2\char`\"{}} \label{cpeuri_8c_a7aab56689fced21a3cccd660bbfce024} \end{DoxyCompactItemize} \subsection*{Enumerations} \begin{DoxyCompactItemize} \item enum {\bfseries cpe\_\-field\_\-t} \{ \par {\bfseries CPE\_\-FIELD\_\-TYPE}, {\bfseries CPE\_\-FIELD\_\-VENDOR}, {\bfseries CPE\_\-FIELD\_\-PRODUCT}, {\bfseries CPE\_\-FIELD\_\-VERSION}, \par {\bfseries CPE\_\-FIELD\_\-UPDATE}, {\bfseries CPE\_\-FIELD\_\-EDITION}, {\bfseries CPE\_\-FIELD\_\-LANGUAGE}, {\bfseries CPE\_\-FIELDNUM} \} \end{DoxyCompactItemize} \subsection*{Functions} \begin{DoxyCompactItemize} \item \hypertarget{cpeuri_8c_a74ba029f58f44ff5496a225b2dcdd981}{ char $\ast$$\ast$ {\bfseries cpe\_\-uri\_\-split} (char $\ast$str, const char $\ast$delim)} \label{cpeuri_8c_a74ba029f58f44ff5496a225b2dcdd981} \item \hypertarget{cpeuri_8c_afd151f3ad1a0a5df02ad69643f083c19}{ bool {\bfseries cpe\_\-name\_\-check} (const char $\ast$str)} \label{cpeuri_8c_afd151f3ad1a0a5df02ad69643f083c19} \item \hypertarget{cpeuri_8c_a5ed72567416c66343bdb6015fa523e93}{ struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$ {\bfseries cpe\_\-name\_\-new} (const char $\ast$cpestr)} \label{cpeuri_8c_a5ed72567416c66343bdb6015fa523e93} \item \hypertarget{cpeuri_8c_af3b2a0e23c35f22e126a9cd221bd6e70}{ bool {\bfseries cpe\_\-name\_\-match\_\-one} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$against)} \label{cpeuri_8c_af3b2a0e23c35f22e126a9cd221bd6e70} \item \hypertarget{cpeuri_8c_ada347ce1193dc959312f0fefbdab9fa3}{ bool {\bfseries cpe\_\-name\_\-match\_\-cpes} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$name, size\_\-t n, struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$$\ast$namelist)} \label{cpeuri_8c_ada347ce1193dc959312f0fefbdab9fa3} \item \hypertarget{cpeuri_8c_a12c833bf057353c756b92570e0cfa047}{ int {\bfseries cpe\_\-name\_\-match\_\-strs} (const char $\ast$candidate, size\_\-t n, char $\ast$$\ast$targets)} \label{cpeuri_8c_a12c833bf057353c756b92570e0cfa047} \item \hypertarget{cpeuri_8c_a7078b53b70266429c771081088429b47}{ char $\ast$ {\bfseries cpe\_\-name\_\-get\_\-uri} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)} \label{cpeuri_8c_a7078b53b70266429c771081088429b47} \item \hypertarget{cpeuri_8c_a5830b374983190bd7a0bdabd93808a03}{ int {\bfseries cpe\_\-name\_\-write} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, FILE $\ast$f)} \label{cpeuri_8c_a5830b374983190bd7a0bdabd93808a03} \item \hypertarget{cpeuri_8c_a6fcacf25ee259b5b9343da178722ea1b}{ void {\bfseries cpe\_\-name\_\-free} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)} \label{cpeuri_8c_a6fcacf25ee259b5b9343da178722ea1b} \item \hypertarget{cpeuri_8c_a79152369e7773bf588aa72da6278c921}{ const char $\ast$ {\bfseries cpe\_\-name\_\-supported} (void)} \label{cpeuri_8c_a79152369e7773bf588aa72da6278c921} \end{DoxyCompactItemize} \subsection{Detailed Description} Interface to Common Platform Enumeration (CPE) URI. See more details at \href{http://nvd.nist.gov/cpe.cfm}{\tt http://nvd.nist.gov/cpe.cfm}