|
|
1.1 root 1: /* dapmodrdn.c - */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/dsap/net/RCS/dapmodrdn.c,v 7.0 90/07/26 14:45:23 mrose Exp $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/dsap/net/RCS/dapmodrdn.c,v 7.0 90/07/26 14:45:23 mrose Exp $
9: *
10: *
11: * $Log: dapmodrdn.c,v $
12: * Revision 7.0 90/07/26 14:45:23 mrose
13: * *** empty log message ***
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include "quipu/util.h"
31: #include "quipu/dap2.h"
32:
33: dap_modifyrdn (ad, id, arg, error)
34: int ad;
35: int * id;
36: struct ds_modifyrdn_arg *arg;
37: struct DSError *error;
38: {
39: struct DAPindication di_s;
40: struct DAPindication * di = &(di_s);
41:
42: ++(*id);
43:
44: (void) DapModifyRDN (ad, (*id), arg, di, ROS_INTR);
45:
46: error->dse_type = DSE_NOERROR;
47:
48: switch (di->di_type)
49: {
50: case DI_RESULT:
51: {
52: struct DAPresult * dr = &(di->di_result);
53:
54: DRFREE (dr);
55: return (DS_OK);
56: }
57:
58: case DI_ERROR:
59: {
60: struct DAPerror * de = &(di->di_error);
61:
62: (*error) = de->de_err; /* struct copy */
63: return (DS_ERROR_REMOTE);
64: }
65:
66: case DI_PREJECT:
67: error->dse_type = DSE_REMOTEERROR;
68: return (DS_ERROR_PROVIDER);
69:
70: case DI_ABORT:
71: error->dse_type = DSE_REMOTEERROR;
72: return (DS_ERROR_CONNECT);
73:
74: default:
75: error->dse_type = DSE_REMOTEERROR;
76: return (DS_ERROR_PROVIDER);
77: }
78: }
79:
80: int DapModifyRDN (ad, id, arg, di, asyn)
81: int ad;
82: int id;
83: struct ds_modifyrdn_arg * arg;
84: struct DAPindication * di;
85: int asyn;
86: {
87: PE arg_pe;
88:
89: if(encode_DAS_ModifyRDNArgument(&arg_pe,1,0,NULLCP,arg) != OK)
90: {
91: return(dapreject (di, DP_INVOKE, id, NULLCP, "ModifyRDN argument encoding failed"));
92: }
93:
94: return (DapInvokeReqAux (ad, id, OP_MODIFYRDN, arg_pe, di, asyn));
95:
96: }
97:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.