dsapi_attr.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110 #ifndef ISODE_DSAPI_ATTR_H
00111 #define ISODE_DSAPI_ATTR_H
00112
00113 #include <stddef.h>
00114 #include <isode/ds/dsapi/dsapi_cdecl.h>
00115 #include <isode/ds/dsapi/dsapi_types.h>
00116 #include <isode/ds/dsapi/dsapi_const.h>
00117
00173 LIBDSAPI_CDECL
00174 DS_Status DS_Entry_GetNamedAttr (
00175 const DS_Entry *entry,
00176 const char *type,
00177 const DS_Attr **attr_p
00178 );
00179
00191 LIBDSAPI_CDECL
00192 DS_Status DS_Entry_GetAttrList (
00193 const DS_Entry *entry,
00194 const DS_AttrList **attr_list_p
00195 );
00196
00210 LIBDSAPI_CDECL
00211 DS_Status DS_Entry_GetModList (
00212 const DS_Entry *entry,
00213 const DS_AttrList **mod_list_p
00214 );
00215
00228 LIBDSAPI_CDECL
00229 DS_Status DS_AttrList_New (
00230 DS_AttrList **attrlist_p,
00231 const DS_Attr *attr
00232 );
00233
00245 LIBDSAPI_CDECL
00246 DS_Status DS_AttrList_Append (
00247 DS_AttrList *attrlist,
00248 const DS_Attr *attr
00249 );
00250
00258 LIBDSAPI_CDECL
00259 const DS_Attr *DS_AttrList_GetFirst (
00260 const DS_AttrList *attr_list
00261 );
00262
00270 LIBDSAPI_CDECL
00271 const DS_Attr *DS_AttrList_GetNext (
00272 const DS_Attr *attr
00273 );
00274
00286 LIBDSAPI_CDECL
00287 DS_Status DS_Attr_GetTypeName (
00288 const DS_Attr *attr,
00289 const char **str_p
00290 );
00291
00306 LIBDSAPI_CDECL
00307 DS_Status DS_Attr_GetModType (
00308 const DS_Attr *attr,
00309 DSModType *type_p
00310 );
00311
00323 LIBDSAPI_CDECL
00324 DS_Status DS_Attr_GetValueList (
00325 const DS_Attr *attr,
00326 const DS_AttrValList **val_list_p
00327 );
00328
00349 LIBDSAPI_CDECL
00350 DS_Status DS_Attr_AddStringValue (
00351 DS_Attr *attr,
00352 const char *str,
00353 size_t len
00354 );
00355
00376 LIBDSAPI_CDECL
00377 DS_Status DS_Attr_AddBERValue (
00378 DS_Attr *attr,
00379 const unsigned char *ber,
00380 size_t len
00381 );
00382
00394 LIBDSAPI_CDECL
00395 DS_Status DS_Attr_New (
00396 const char *name,
00397 DS_Attr **attr_p
00398 );
00399
00411 LIBDSAPI_CDECL
00412 DS_Status DS_Attr_New_AllowUnknown (
00413 const char *name,
00414 DS_Attr **attr_p
00415 );
00416
00428 LIBDSAPI_CDECL
00429 DS_Status DS_Attr_IsUnknown (
00430 DS_Attr *attr,
00431 int *is_unknown_p
00432 );
00433
00443 LIBDSAPI_CDECL
00444 DS_Status DS_Attr_Copy (
00445 const DS_Attr *attr,
00446 DS_Attr **copy_p
00447 );
00448
00454 LIBDSAPI_CDECL
00455 void DS_Attr_Delete (
00456 DS_Attr *attr
00457 );
00458
00468 LIBDSAPI_CDECL
00469 DS_Status DS_AttrList_Copy (
00470 const DS_AttrList *attr_list,
00471 DS_AttrList **copy_p
00472 );
00473
00479 LIBDSAPI_CDECL
00480 void DS_AttrList_Delete (
00481 DS_AttrList *attr_list
00482 );
00483
00484
00485
00497 LIBDSAPI_CDECL
00498 const DS_AttrVal *DS_AttrValList_GetFirst (
00499 const DS_AttrValList *value_list
00500 );
00501
00510 LIBDSAPI_CDECL
00511 DS_Status DS_AttrValList_GetCount (
00512 const DS_AttrValList *value_list,
00513 int *count_p
00514 );
00515
00523 LIBDSAPI_CDECL
00524 const DS_AttrVal *DS_AttrValList_GetNext (
00525 const DS_AttrVal *value
00526 );
00527
00542 LIBDSAPI_CDECL
00543 DS_Status DS_AttrVal_GetBERPointer (
00544 const DS_AttrVal *value,
00545 const unsigned char **ber_ptr_p,
00546 size_t *ber_len_p
00547 );
00548
00574 LIBDSAPI_CDECL
00575 DS_Status DS_AttrVal_GetStringPointer (
00576 const DS_AttrVal *value,
00577 const char **str_p,
00578 size_t *str_len_p
00579 );
00580
00600 LIBDSAPI_CDECL
00601 DS_Status DS_AttrVal_GetInternal (
00602 const DS_AttrVal *value,
00603 const void **ir_p
00604 );
00605
00615 LIBDSAPI_CDECL
00616 DS_Status DS_AttrVal_Internal_Delete (
00617 const DS_AttrVal *value,
00618 void *ir
00619 );
00620
00642 LIBDSAPI_CDECL
00643 DS_Status DS_AttrVal_Normalize (
00644 const DS_AttrVal *value
00645 );
00646
00669 LIBDSAPI_CDECL
00670 DS_Status DS_AttrVal_Compare (
00671 const DS_AttrVal *av1,
00672 const DS_AttrVal *av2,
00673 int *res_p
00674 );
00675
00685 LIBDSAPI_CDECL
00686 DS_Status DS_AttrVal_Copy (
00687 const DS_AttrVal *av,
00688 DS_AttrVal **copy_p
00689 );
00690
00696 LIBDSAPI_CDECL
00697 void DS_AttrVal_Delete (
00698 DS_AttrVal *av
00699 );
00700
00710 LIBDSAPI_CDECL
00711 DS_Status DS_AttrValList_Copy (
00712 const DS_AttrValList *av_list,
00713 DS_AttrValList **copy_p
00714 );
00715
00721 LIBDSAPI_CDECL
00722 void DS_AttrValList_Delete (
00723 DS_AttrValList *av_list
00724 );
00725
00730 #endif