28 lines
953 B
OpenEdge ABL
28 lines
953 B
OpenEdge ABL
////////////////////////////////////////////////////////////////////////////////
|
|
// Copyright 2016 Google Inc.
|
|
//
|
|
// This software is licensed under the terms defined in the Widevine Master
|
|
// License Agreement. For a copy of this agreement, please contact
|
|
// widevine-licensing@google.com.
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
%include "std_string.i"
|
|
%include "typemaps.i"
|
|
|
|
%define %ignoreall %ignore ""; %enddef
|
|
%define %unignore %rename("%s") %enddef
|
|
%define %unignoreall %rename("%s") ""; %enddef
|
|
|
|
%define COPY_TYPEMAPS(oldtype, newtype)
|
|
typedef oldtype newtype;
|
|
%apply oldtype * OUTPUT { newtype * OUTPUT };
|
|
%apply oldtype & OUTPUT { newtype & OUTPUT };
|
|
%apply oldtype * INPUT { newtype * INPUT };
|
|
%apply oldtype & INPUT { newtype & INPUT };
|
|
%apply oldtype * INOUT { newtype * INOUT };
|
|
%apply oldtype & INOUT { newtype & INOUT };
|
|
%enddef
|
|
|
|
COPY_TYPEMAPS(int, int32);
|
|
COPY_TYPEMAPS(unsigned int, uint32);
|