2 * Copyright (c) 1999, Index Data.
3 * See the file LICENSE for details.
6 * Revision 1.1 1999-12-16 23:36:19 adam
7 * Implemented ILL protocol. Minor updates ASN.1 compiler.
13 ILL_ItemRequest *ill_get_ItemRequest (ODR o)
15 ILL_ItemRequest *r = (ILL_ItemRequest *)odr_malloc(o, sizeof(*r));
17 r->protocol_version_num = (int*) odr_malloc(o, sizeof(int));
18 *r->protocol_version_num = ILL_Request_version_2;
20 r->service_date_time = 0;
23 r->transaction_type = 0;
24 r->delivery_address = 0;
25 r->delivery_service = 0;
26 r->billing_address = 0;
28 r->num_iLL_service_type = 1;
29 r->iLL_service_type = (ILL_Service_Type **)
30 odr_malloc (o, sizeof(*r->iLL_service_type));
31 *r->iLL_service_type = (ILL_Service_Type *)
32 odr_malloc (o, sizeof(**r->iLL_service_type));
33 **r->iLL_service_type = ILL_Service_Type_copy_non_returnable;
35 r->responder_specific_service = 0;
36 r->requester_optional_messages = 0;
38 r->num_supply_medium_info_type = 0;
39 r->supply_medium_info_type = 0;
41 r->place_on_hold = (int*) odr_malloc(o, sizeof(int));
42 *r->place_on_hold = ILL_Place_On_Hold_Type_according_to_responder_policy;
46 r->supplemental_item_description = 0;
47 r->cost_info_type = 0;
48 r->copyright_compliance = 0;
49 r->third_party_info_type = 0;
50 r->retry_flag = (int *)odr_malloc(o, sizeof(bool_t));
52 r->forward_flag = (int *)odr_malloc(o, sizeof(bool_t));
54 r->requester_note = 0;
56 r->num_iLL_request_extensions = 0;
57 r->iLL_request_extensions = 0;