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, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27 #pragma ident "%Z%%M% %I% %E% SMI"
28
29 /*
30 * This module contains the public APIs for status, version, and mklocation.
31 */
32
33 #include <dhcp_svc_public.h>
34
35 /*
36 * This API function instructs the underlying datastore to return its general
37 * status. If the ``location'' argument is non-NULL, the function validates
38 * the location for the data store containers (is it formed correctly
39 * for the data store, and does it exist).
40 */
41 int
status(const char * location)42 status(const char *location)
43 {
44 return (DSVC_UNSUPPORTED);
45 }
46
47 /*
48 * Return the data store API version supported by this module. This version
49 * was implemented to support version 1 of the API.
50 */
51 int
version(int * vp)52 version(int *vp)
53 {
54 *vp = DSVC_PUBLIC_VERSION;
55 return (DSVC_SUCCESS);
56 }
57
58 /*
59 * Create the datastore-specific "location" if it doesn't already exist.
60 * Containers will ultimately be created there.
61 */
62 int
mklocation(const char * location)63 mklocation(const char *location)
64 {
65 return (DSVC_UNSUPPORTED);
66 }
67