2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SLPGETPROPERTY 3SLP "Jan 16, 2003"
8 SLPGetProperty \- return SLP configuration property
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lslp\fR [ \fIlibrary\fR... ]
15 \fBconst char*\fR \fBSLPGetProperty\fR(\fBconst char*\fR \fIpcName\fR);
21 The \fBSLPGetProperty()\fR function returns the value of the corresponding
22 \fBSLP\fR property name, or \fINULL\fR, if none. If there is no error,
23 \fBSLPGetProperty()\fR returns a pointer to the property value. If the
24 property was not set, it returns the empty string, \fB""\fR. If an error
25 occurs, \fBSLPGetProperty()\fR returns \fINULL\fR. The returned string should
34 A null-terminated string with the property name. \fIpcName\fR cannot be
41 This function or its callback may return any \fBSLP\fR error code. See the
42 ERRORS section in \fBslp_api\fR(3SLP).
45 \fBExample 1 \fRUsing \fBSLPGetProperty()\fR
48 Use the following example to return a list of configured scopes:
55 useScopes = SLPGetProperty("net.slp.useScopes");
59 .SH ENVIRONMENT VARIABLES
63 \fB\fBSLP_CONF_FILE\fR\fR
66 When set, use this file for configuration.
72 \fBslpd\fR(1M), \fBslp_api\fR(3SLP), \fBslp.conf\fR(4), \fBslpd.reg\fR(4),
76 \fISystem Administration Guide: Network Services\fR
79 Kempf, J. and Guttman, E. \fIRFC 2614, An API for Service Location\fR. The
80 Internet Society. June 1999.