📄 slpdelattrs.html
字号:
<!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. OpenSLPwill not implement this function in the 1.0 development cycle because ofa lack of interest and the existance of an obvious work-around replacement. Instead of calling <tt>SLPDelAttrs() </tt>developers writing to OpenSLPshould use simply <tt><a href="SLPDereg.html">SLPDeReg()</a></tt> to de-registerthe 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 deletingattributes.</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 attributesfrom. May not be the empty string. May not be NULL. Mustconform 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 moreinformation 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 informationon 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -