/usr/share/doc/openslp-doc/html/ProgrammersGuide/SLPGetProperty.html is in openslp-doc 1.2.1-9ubuntu0.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.77C-CCK-MCD Caldera Systems OpenLinux [en] (X11; U; Linux 2.4.2 i686) [Netscape]">
<title>OpenSLP Programmers Guide - SLPGetProperty()</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000">
<h2>
SLPGetProperty</h2>
<hr WIDTH="100%">
<h3>
Declaration</h3>
<tt>#include <slp.h></tt>
<p><tt>const char* SLPGetProperty( const char* <a href="#name">name</a>)</tt>
<br>
<h3>
Description</h3>
Returns the value of the corresponding SLP property name. The returned
string is owned by the library and MUST NOT be freed.
<br>
<h3>
Parameters</h3>
<table BORDER CELLPADDING=5 NOSAVE >
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="name"></a><tt>name</tt></td>
<td NOSAVE>The name of a net.slp property to get. See <a href="/broken">OpenSLP
Users Guide</a> for a list of supported properties</td>
</tr>
</table>
<h3>
Returns</h3>
A very thread unsafe character pointer to a string containing the property
value. If an error occurs, like the property <tt>name</tt> is not
found, NULL is returned so don't forget to check for NULL!
<br>
<h3>
Status</h3>
<table CELLPADDING=5 NOSAVE >
<tr VALIGN=TOP NOSAVE>
<td NOSAVE>OpenSLP 0.6.0</td>
<td NOSAVE>Fully implemented as specified by RFC 2614.</td>
</tr>
</table>
<h3>
Notes</h3>
For some reason the SLP API writers decided to make SLPGetProperty() and
SLPSetProperty() calls impossible to implement in a thread safe manner.
For this reason OpenSLP only allows read only access to SLP properties.
Properties are read into static data structures when the process loads,
and never changed so at least SLPGetProperty() can be called from threaded
applications.
<h3>
See Also</h3>
<a href="SLPSetProperty.html">SLPSetProperty()</a>, <a href="/broken">Open
SLP Users Guide</a>
</body>
</html>
|