• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

/home/pvrabec/project/openscap/openscap-0.6.5/src/OVAL/probes/SEAP/public/seap-message.h

00001 /*
00002  * Copyright 2009 Red Hat Inc., Durham, North Carolina.
00003  * All Rights Reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  *
00019  * Authors:
00020  *      "Daniel Kopecek" <dkopecek@redhat.com>
00021  */
00022 
00023 #pragma once
00024 #ifndef SEAP_MESSAGE_H
00025 #define SEAP_MESSAGE_H
00026 
00027 #include <stdint.h>
00028 #include <stdbool.h>
00029 #include <sexp-types.h>
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 #if SEAP_MSGID_BITS == 64
00036 typedef uint64_t SEAP_msgid_t;
00037 #else
00038 typedef uint32_t SEAP_msgid_t;
00039 #endif
00040 
00041 typedef struct SEAP_msg  SEAP_msg_t;
00042 typedef struct SEAP_attr SEAP_attr_t;
00043 
00044 SEAP_msg_t *SEAP_msg_new (void);
00045 SEAP_msg_t *SEAP_msg_clone (SEAP_msg_t *msg);
00046 void        SEAP_msg_free (SEAP_msg_t *msg);
00047 
00048 SEAP_msgid_t SEAP_msg_id (SEAP_msg_t *msg);
00049 
00050 int     SEAP_msg_set (SEAP_msg_t *msg, SEXP_t *sexp);
00051 void    SEAP_msg_unset (SEAP_msg_t *msg);
00052 SEXP_t *SEAP_msg_get (SEAP_msg_t *msg);
00053 
00054 SEXP_t *SEAP_msgattr_get (SEAP_msg_t *msg, const char *name);
00055 int     SEAP_msgattr_set (SEAP_msg_t *msg, const char *name, SEXP_t *value);
00056 int     SEAP_msgattr_del (SEAP_msg_t *msg, const char *name);
00057 bool    SEAP_msgattr_exists (SEAP_msg_t *msg, const char *name);
00058 
00059 #include <stdio.h>
00060 void SEAP_msg_print (FILE *fp, SEAP_msg_t *msg);
00061 
00062 #ifdef __cplusplus
00063 }
00064 #endif
00065 
00066 #endif /* SEAP_MESSAGE_H */

Generated on Wed Dec 1 2010 for Open SCAP Library by  doxygen 1.7.1