00001 00009 /* 00010 * Copyright 2010 Red Hat Inc., Durham, North Carolina. 00011 * All Rights Reserved. 00012 * 00013 * This library is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU Lesser General Public 00015 * License as published by the Free Software Foundation; either 00016 * version 2.1 of the License, or (at your option) any later version. 00017 * 00018 * This library is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 * Lesser General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public 00024 * License along with this library; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00026 * 00027 * Authors: 00028 * "Daniel Kopecek" <dkopecek@redhat.com> 00029 */ 00030 #ifndef OVAL_PROBE_SESSION 00031 #define OVAL_PROBE_SESSION 00032 00033 typedef struct oval_probe_session oval_probe_session_t; 00034 00035 #include "oval_probe_handler.h" 00036 #include "oval_system_characteristics.h" 00037 00042 oval_probe_session_t *oval_probe_session_new(struct oval_syschar_model *model); 00043 00050 void oval_probe_session_destroy(oval_probe_session_t *sess); 00051 00057 int oval_probe_session_close(oval_probe_session_t *sess); 00058 00065 int oval_probe_session_reset(oval_probe_session_t *sess, struct oval_syschar_model *sysch); 00066 00074 int oval_probe_session_sethandler(oval_probe_session_t *sess, oval_subtype_t type, oval_probe_handler_t handler, void *ptr); 00075 00080 struct oval_syschar_model *oval_probe_session_getmodel(oval_probe_session_t *sess); 00081 00082 int oval_probe_session_query_variable(oval_probe_session_t *sess, struct oval_variable *variable); 00083 00084 #endif /* OVAL_PROBE_SESSION */