components/visual-panels/smf/src/cmd/rad/mod/smf/datatype.h
branchs11-update
changeset 2805 4888f6212f94
parent 2804 7546c836fd87
child 2806 8ac3cbf66125
equal deleted inserted replaced
2804:7546c836fd87 2805:4888f6212f94
     1 /*
       
     2  * CDDL HEADER START
       
     3  *
       
     4  * The contents of this file are subject to the terms of the
       
     5  * Common Development and Distribution License (the "License").
       
     6  * You may not use this file except in compliance with the License.
       
     7  *
       
     8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9  * or http://www.opensolaris.org/os/licensing.
       
    10  * See the License for the specific language governing permissions
       
    11  * and limitations under the License.
       
    12  *
       
    13  * When distributing Covered Code, include this CDDL HEADER in each
       
    14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15  * If applicable, add the following below this CDDL HEADER, with the
       
    16  * fields enclosed by brackets "[]" replaced with your own identifying
       
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
       
    18  *
       
    19  * CDDL HEADER END
       
    20  */
       
    21 
       
    22 /*
       
    23  * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
       
    24  */
       
    25 
       
    26 #ifndef	_DATATYPE_H
       
    27 #define	_DATATYPE_H
       
    28 
       
    29 #include <sys/types.h>
       
    30 #include <rad/adr.h>
       
    31 #include <rad/rad_modapi.h>
       
    32 #include <libscf.h>
       
    33 
       
    34 #include "smfutil.h"
       
    35 
       
    36 #ifdef	__cplusplus
       
    37 extern "C" {
       
    38 #endif
       
    39 
       
    40 adr_data_t *create_SMFState(const char *);
       
    41 scf_type_t from_PropertyType(adr_data_t *);
       
    42 
       
    43 svcerr_t create_Dependency(scf_handle_t *, scf_propertygroup_t *,
       
    44     adr_data_t **);
       
    45 svcerr_t create_Manpage(scf_handle_t *, scf_propertygroup_t *, adr_data_t **);
       
    46 svcerr_t create_Doclink(scf_handle_t *, scf_propertygroup_t *, adr_data_t **);
       
    47 
       
    48 svcerr_t create_PropertyGroup(scf_propertygroup_t *, adr_data_t **);
       
    49 
       
    50 svcerr_t create_Property(scf_property_t *, scf_iter_t *, scf_value_t *,
       
    51     adr_data_t **, adr_data_t **);
       
    52 svcerr_t create_Properties(scf_handle_t *, scf_propertygroup_t *, adr_data_t **,
       
    53     adr_data_t **);
       
    54 
       
    55 svcerr_t create_ExtendedState(scf_handle_t *, scf_instance_t *, adr_data_t **);
       
    56 
       
    57 svcerr_t create_PGTemplate(scf_pg_tmpl_t *, const char *, adr_data_t **);
       
    58 svcerr_t create_PropTemplate(scf_prop_tmpl_t *, const char *, adr_data_t **);
       
    59 
       
    60 svcerr_t create_Instance(scf_instance_t *, const char *, const char *,
       
    61     adr_data_t **, scf_propertygroup_t *, scf_property_t *, scf_value_t *);
       
    62 
       
    63 #ifdef	__cplusplus
       
    64 }
       
    65 #endif
       
    66 
       
    67 #endif	/* _DATATYPE_H */