1SLPDelAttrs(3SLP) Service Location Protocol Library FunctionsSLPDelAttrs(3SLP)
2
3
4
6 SLPDelAttrs - delete attributes
7
9 cc [ flag... ] file... -lslp [ library... ]
10 #include <slp.h>
11
12 SLPError SLPDelAttrs(SLPHandle hSLP, const char *pcURL,
13 const char *pcAttrs, SLPRegReport *callback, void *pvCookie);
14
15
17 The SLPDelAttrs() function deletes the selected attributes in the
18 locale of the SLPHandle. If no error occurs, the return value is 0.
19 Otherwise, one of the SLPError codes is returned.
20
22 hSLP The language specific SLPHandle to use to delete
23 attributes. It cannot be NULL.
24
25
26 pcURL The URL of the advertisement from which the attributes
27 should be deleted. It cannot be NULL.
28
29
30 pcAttrs A comma-separated list of attribute ids for the
31 attributes to deregister.
32
33
34 callback A callback to report the operation's completion status. It
35 cannot be NULL.
36
37
38 pvCookie Memory passed to the callback code from the client. It can‐
39 not be NULL.
40
41
43 This function or its callback may return any SLP error code. See the
44 ERRORS section in slp_api(3SLP).
45
47 Example 1 Deleting Attributes
48
49
50 Use the following example to delete the location and dpi attributes for
51 the URL service:printer:lpr://serv/queve1
52
53
54 SLPHandle hSLP;
55 SLPError err;
56 SLPRegReport report;
57
58 err = SLPDelAttrs(hSLP, "service:printer:lpr://serv/queue1",
59 "location,dpi", report, NULL);
60
61
63 SLP_CONF_FILE When set, use this file for configuration.
64
65
67 See attributes(5) for descriptions of the following attributes:
68
69
70
71
72 ┌─────────────────────────────┬─────────────────────────────┐
73 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
74 ├─────────────────────────────┼─────────────────────────────┤
75 │Availability │SUNWslpu │
76 └─────────────────────────────┴─────────────────────────────┘
77
79 slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
80
81
82 System Administration Guide: Network Services
83
84
85 Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The
86 Internet Society. June 1999.
87
88
89
90SunOS 5.11 16 Jan 2003 SLPDelAttrs(3SLP)