...
Code Block | ||
---|---|---|
| ||
customRoutines:
generateCHeaders: true
mapping:
AddOneToNumber: "{0} + 1"
GetBalanceInUSD: "{0} * 0.75"
MyCustomServerRoutine: ACustomRoutine({0}, {1}) : {2}
libraries:
-
name: test # FUNCTION LIBRARY 'test'
path: /path/to/lib/
type: SHARED_LIBRARY
routines:
ACustomRoutine: # DATASTAGE FUNCTION 'a_custom_function(FLOAT, STRING, STRING)'
type: STRING
externalName: "a_custom_function" # Wraps C function 'a_custom_function(float arg1, char * arg2, char * a)'
arguments:
-
name: arg1
type: FLOAT
-
name: arg2
type: STRING
-
name: a
type: STRING
-
name: test2 # FUNCTION LIBRARY 'test2'
path: /path/to/lib/again/
type: SHARED_LIBRARY
routines:
ConvertSomething: # DATASTAGE FUNCTION 'convert_something(INT)'
type: UINT
externalName: "convert_something" # Wraps C function 'convert_something(int a)''
arguments:
-
name: a
type: INT |
...