1 /******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
11 import from Custom1 all;
12 import from Custom3 all;
14 // Coding function declarations for test 1
15 external function f_enc_rec(in Rec x) return bitstring
16 with { extension "prototype(convert) encode(localCustom)" }
18 external function f_dec_rec(inout bitstring b, out Rec x) return integer
19 with { extension "prototype(sliding) decode(localCustom)" }
21 // Coding function declarations for test 3
22 external function f_enc_uni(in Uni x) return bitstring
23 with { extension "prototype(convert) encode(globalCustom)" }
25 external function f_dec_uni(inout bitstring b, out Uni x) return integer
26 with { extension "prototype(sliding) decode(globalCustom)" }