blob: 77ea46b7e46e6c5703e649aebf0f4f5504c3585a (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<!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.72C-CCK-MCD Caldera Systems OpenLinux [en] (X11; U; Linux 2.2.14 i686) [Netscape]">
<title>OpenSLP Programmers Guide - SLPDelAttrs()</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<h2>
SLPDelAttrs</h2>
<hr WIDTH="100%">
<h3>
Declaration</h3>
<tt>#include <slp.h></tt>
<p><tt><a href="SLPError.html">SLPError</a> SLPDelAttrs( SLPHandle <a href="#hslp">hslp</a>,</tt>
<br><tt>
const char* <a href="#srvurl">srvurl</a>,</tt>
<br><tt>
const char* attrs,</tt>
<br><tt>
<a href="SLPRegReport.html">SLPRegReport</a> <a href="#callback">callback</a>,</tt>
<br><tt>
void* <a href="#cookie">cookie</a> )</tt>
<h3>
Description</h3>
Deletes specified attributes from a registered service. OpenSLP
will not implement this function in the 1.0 development cycle because of
a lack of interest and the existance of an obvious work-around replacement.
Instead of calling <tt>SLPDelAttrs() </tt>developers writing to OpenSLP
should use simply <tt><a href="SLPDereg.html">SLPDeReg()</a></tt> to de-register
the entire service then call <tt><a href="SLPReg.html">SLPReg()</a></tt>
to re-register the service with out the undesired attributes.
<h3>
Parameters</h3>
<table BORDER CELLPADDING=5 NOSAVE >
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="hslp"></a><tt>hslp</tt></td>
<td NOSAVE>The language specific <tt>SLPHandle</tt> to use for deleting
attributes.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="srvurl"></a><tt>srvurl</tt></td>
<td>The SLP Service URL of the registered service to delete attributes
from. May not be the empty string. May not be NULL. Must
conform to SLP Service URL syntax or <tt><a href="SLPError.html#INVALID_REGISTRATION">SLP_INVALID_REGISTRATION</a></tt>
will be returned. See <a href="/Syntax.html">Syntax</a> for more
information on SLP Service URL syntax.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="attrs"></a><tt>attrs</tt></td>
<td>A comma separated list of attribute ids to be deleted from the registration.
May not be the empty string. May not be NULL.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="callback"></a><tt>callback</tt></td>
<td NOSAVE>The address of an <tt><a href="/SLPRegReport.html">SLPRegReport</a></tt>
function that will be called to report the operation completion status.
May not be NULL. See <a href="/Callbacks.html">Callbacks</a> for more information
on how callbacks are used by the SLPAPI.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="cookie"></a><tt>cookie</tt></td>
<td NOSAVE>Pointer to memory that gets passed to the callback code.
May be NULL.</td>
</tr>
</table>
<h3>
Returns</h3>
Always returns <tt><a href="SLPError.html#SLP_NOT_IMPLEMENTED">SLP_NOT_IMPLEMENTED</a></tt>
<br>
<h3>
Status</h3>
<table CELLPADDING=5 NOSAVE >
<tr VALIGN=TOP NOSAVE>
<td NOSAVE>OpenSLP 1.0 </td>
<td NOSAVE>Will not be implemented in the OpenSLP 1.0 development cycle.
Always returns <tt><a href="SLPError.html#SLP_NOT_IMPLEMENTED">SLP_NOT_IMPLEMENTED</a></tt></td>
</tr>
</table>
<h3>
See Also</h3>
<a href="/SLPReg.html">SLPReg()</a>, <a href="SLPDereg.html">SLPDeReg()</a>,
<a href="/Syntax.html">Syntax</a>,
<a href="/Callback.html">Callbacks</a>
</body>
</html>
|