--- mstools/samples/rpc/dict/replay.idl 2018/08/09 18:20:01 1.1 +++ mstools/samples/rpc/dict/replay.idl 2018/08/09 18:24:21 1.1.1.3 @@ -2,27 +2,17 @@ /** **/ /** Microsoft RPC Examples **/ /** Dictionary Application **/ -/** Copyright(c) Microsoft Corp. 1991 **/ +/** Copyright(c) Microsoft Corp. 1992 **/ /** **/ /*************************************************************/ -#define IN [in] -#define OUT [out] -#define SIZE_IS(size) -#define LENGTH_IS(length) -#define UNIQUE -#define INTERFACE -#define SPLAY_TREE -#define CALLBACK - - - -[ - uuid (12345678-1234-ABCD-EF00-0123456789AB), - version(1.0), - endpoint("msc_np:[\\pipe\\splay]") +[ uuid (12345678-1234-ABCD-EF00-0123456789AB), + version(1.0), +// endpoint("msc_np:[\\pipe\\splay]"), + pointer_default(unique) ] - interface dict { +interface dict +{ /*************************************************************************/ /*** Strongly typed tree nodes and dictionaries ***/ @@ -40,6 +30,8 @@ typedef struct _Record { [string] char* name; // contributor } Record; +typedef Record * PRecord; + /* ************************************************************************ * The following definitions (RDict, RecordTreeNode) are required @@ -72,7 +64,6 @@ typedef struct _RDict { */ typedef [context_handle] void * VDict; -/* typedef enum { DICT_SUCCESS, DICT_ITEM_ALREADY_PRESENT, @@ -81,24 +72,7 @@ typedef enum { DICT_LAST_ITEM, DICT_EMPTY_DICTIONARY, DICT_NULL_ITEM -} -VDict_Status; - - * - * VDict_Status and the #defines following replaces the above enum - * definition for now. -*/ - -typedef short VDict_Status; - -#define DICT_SUCCESS 0 -#define DICT_ITEM_ALREADY_PRESENT 1 -#define DICT_ITEM_NOT_FOUND 2 -#define DICT_FIRST_ITEM 3 -#define DICT_LAST_ITEM 4 -#define DICT_EMPTY_DICTIONARY 5 -#define DICT_NULL_ITEM 6 - +} VDict_Status; /*************************************************************************/ /*** Generic Dictionary Operations: (From dict0.h) ***/ @@ -181,7 +155,7 @@ VDict_New( VDict_Status VDict_Find( [in] VDict v_dict, - [in, out, unique] Record ** item + [in, out] Record ** item ); /* @@ -193,13 +167,13 @@ VDict_Find( VDict_Status VDict_Next( [in] VDict v_dict, - [in, out, unique] Record ** item + [in, out] Record ** item ); VDict_Status VDict_Prev( [in] VDict v_dict, - [in, out, unique] Record ** item + [in, out] Record ** item ); /* @@ -212,13 +186,13 @@ VDict_Prev( VDict_Status VDict_Curr_Next( [in] VDict v_dict, - [out, unique] Record ** item + [out] Record ** item ); VDict_Status VDict_Curr_Prev( [in] VDict v_dict, - [out, unique] Record ** item + [out] Record ** item ); /* @@ -230,7 +204,7 @@ VDict_Curr_Prev( VDict_Status VDict_Insert( [in] VDict v_dict, - [in, unique] Record * item + [in] Record * item ); /* @@ -243,7 +217,7 @@ VDict_Insert( VDict_Status VDict_Delete( [in] VDict v_dict, - [in, out, unique] Record ** item + [in, out] Record ** item ); /* @@ -255,7 +229,7 @@ VDict_Delete( VDict_Status VDict_Get_Dict( [in] VDict v_dict, - [out, unique] RDict ** r_dict + [out] RDict ** r_dict ); /* @@ -267,7 +241,7 @@ VDict_Get_Dict( VDict_Status VDict_Curr_Item( [in] VDict v_dict, - [out, unique] Record ** item + [out] Record ** item ); /* @@ -281,7 +255,7 @@ VDict_Curr_Item( VDict_Status VDict_Curr_Delete( [in] VDict v_dict, - [out, unique] Record ** item + [out] Record ** item ); /*************************************************************************/