\hypertarget{group__IMPORTEXPORT}{ \section{Import \& export} \label{group__IMPORTEXPORT}\index{Import \& export@{Import \& export}} } File loading and saving support. \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} \item struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} \end{DoxyCompactItemize} \subsection*{Enumerations} \begin{DoxyCompactItemize} \item enum \hyperlink{group__IMPORTEXPORT_ga50294146d55fca89257224182d1f54b4}{oscap\_\-stream\_\-type\_\-t} \{ {\bfseries OSCAP\_\-STREAM\_\-UNKNOWN} = 0, {\bfseries OSCAP\_\-STREAM\_\-FILE} = 1, {\bfseries OSCAP\_\-STREAM\_\-URL} = 2 \} \begin{DoxyCompactList}\small\item\em Stream type. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Functions} \begin{DoxyCompactItemize} \item \hypertarget{group__IMPORTEXPORT_gab66c2346434d1ec81a06f0e1b7f27b55}{ \hyperlink{group__IMPORTEXPORT_ga50294146d55fca89257224182d1f54b4}{oscap\_\-stream\_\-type\_\-t} \hyperlink{group__IMPORTEXPORT_gab66c2346434d1ec81a06f0e1b7f27b55}{oscap\_\-import\_\-source::oscap\_\-import\_\-source\_\-get\_\-type} (const struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$item)} \label{group__IMPORTEXPORT_gab66c2346434d1ec81a06f0e1b7f27b55} \begin{DoxyCompactList}\small\item\em Get type of this import source. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga4e5728f8d50e9562c7802e93e477e5fc}{ const char $\ast$ \hyperlink{group__IMPORTEXPORT_ga4e5728f8d50e9562c7802e93e477e5fc}{oscap\_\-import\_\-source::oscap\_\-import\_\-source\_\-get\_\-name} (const struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$item)} \label{group__IMPORTEXPORT_ga4e5728f8d50e9562c7802e93e477e5fc} \begin{DoxyCompactList}\small\item\em Get name of this import source. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga6817ae8f6e228d4ceae1e9880d47ac10}{ \hyperlink{group__IMPORTEXPORT_ga50294146d55fca89257224182d1f54b4}{oscap\_\-stream\_\-type\_\-t} \hyperlink{group__IMPORTEXPORT_ga6817ae8f6e228d4ceae1e9880d47ac10}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-get\_\-type} (const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$item)} \label{group__IMPORTEXPORT_ga6817ae8f6e228d4ceae1e9880d47ac10} \begin{DoxyCompactList}\small\item\em Get type of this export target. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga625c9b2ead8e54faca039900941646c6}{ const char $\ast$ \hyperlink{group__IMPORTEXPORT_ga625c9b2ead8e54faca039900941646c6}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-get\_\-name} (const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$item)} \label{group__IMPORTEXPORT_ga625c9b2ead8e54faca039900941646c6} \begin{DoxyCompactList}\small\item\em Get name of this export target. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_gad51819649d0cef2fd0daacea292ab1e9}{ const char $\ast$ \hyperlink{group__IMPORTEXPORT_gad51819649d0cef2fd0daacea292ab1e9}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-get\_\-encoding} (const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$item)} \label{group__IMPORTEXPORT_gad51819649d0cef2fd0daacea292ab1e9} \begin{DoxyCompactList}\small\item\em Get encoding for this export target. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga133eb7c6e726e5d7414cb8d1b7dd27cd}{ int \hyperlink{group__IMPORTEXPORT_ga133eb7c6e726e5d7414cb8d1b7dd27cd}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-get\_\-indent} (const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$item)} \label{group__IMPORTEXPORT_ga133eb7c6e726e5d7414cb8d1b7dd27cd} \begin{DoxyCompactList}\small\item\em Get indentation for this export target. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga40e7960a850ff299850b10b5d289f51c}{ const char $\ast$ \hyperlink{group__IMPORTEXPORT_ga40e7960a850ff299850b10b5d289f51c}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-get\_\-indent\_\-string} (const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$item)} \label{group__IMPORTEXPORT_ga40e7960a850ff299850b10b5d289f51c} \begin{DoxyCompactList}\small\item\em Get indentation string for this export target. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_gaaf2e67c62f398583940fae9f5ca1bc79}{ struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$ \hyperlink{group__IMPORTEXPORT_gaaf2e67c62f398583940fae9f5ca1bc79}{oscap\_\-import\_\-source::oscap\_\-import\_\-source\_\-new\_\-file} (const char $\ast$filename, const char $\ast$encoding)} \label{group__IMPORTEXPORT_gaaf2e67c62f398583940fae9f5ca1bc79} \begin{DoxyCompactList}\small\item\em Function returns new import source structure, or NULL if an error occurred. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga33168f86d59307859fa59c50ee9a3676}{ struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$ \hyperlink{group__IMPORTEXPORT_ga33168f86d59307859fa59c50ee9a3676}{oscap\_\-import\_\-source::oscap\_\-import\_\-source\_\-new\_\-URL} (const char $\ast$url, const char $\ast$encoding)} \label{group__IMPORTEXPORT_ga33168f86d59307859fa59c50ee9a3676} \begin{DoxyCompactList}\small\item\em Function returns new import source structure, or NULL if an error occurred. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga9f2f848bbed3681796f125bc5f6aa970}{ void \hyperlink{group__IMPORTEXPORT_ga9f2f848bbed3681796f125bc5f6aa970}{oscap\_\-import\_\-source::oscap\_\-import\_\-source\_\-free} (struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$target)} \label{group__IMPORTEXPORT_ga9f2f848bbed3681796f125bc5f6aa970} \begin{DoxyCompactList}\small\item\em Destroy this import source structure. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_gae9c7e1964f8fafae14467d2d8bc826b8}{ struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$ \hyperlink{group__IMPORTEXPORT_gae9c7e1964f8fafae14467d2d8bc826b8}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-new\_\-file} (const char $\ast$filename, const char $\ast$encoding)} \label{group__IMPORTEXPORT_gae9c7e1964f8fafae14467d2d8bc826b8} \begin{DoxyCompactList}\small\item\em Function returns new export target structure, or NULL if an error occurred. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga3db3d64d3c2a46b9adac63cc9f4eb0d2}{ struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$ \hyperlink{group__IMPORTEXPORT_ga3db3d64d3c2a46b9adac63cc9f4eb0d2}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-new\_\-URL} (const char $\ast$url, const char $\ast$encoding)} \label{group__IMPORTEXPORT_ga3db3d64d3c2a46b9adac63cc9f4eb0d2} \begin{DoxyCompactList}\small\item\em Function returns new export target structure, or NULL if an error occurred. \item\end{DoxyCompactList}\item \hypertarget{group__IMPORTEXPORT_ga53f6362ae846f596ca3160d21fe293c5}{ void \hyperlink{group__IMPORTEXPORT_ga53f6362ae846f596ca3160d21fe293c5}{oscap\_\-export\_\-target::oscap\_\-export\_\-target\_\-free} (struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$target)} \label{group__IMPORTEXPORT_ga53f6362ae846f596ca3160d21fe293c5} \begin{DoxyCompactList}\small\item\em Destroy this export target structure. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Detailed Description} File loading and saving support.