2016-03-19 06:57:51 +13:00
|
|
|
#include "trasterfx.h"
|
|
|
|
#include "plugin_port_interface.h"
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
int is_connected(toonz_port_handle_t port, int *is_connected) {
|
|
|
|
if (!port) {
|
|
|
|
return TOONZ_ERROR_INVALID_HANDLE;
|
|
|
|
}
|
|
|
|
if (!is_connected) {
|
|
|
|
return TOONZ_ERROR_NULL;
|
|
|
|
}
|
|
|
|
*is_connected = reinterpret_cast<TRasterFxPort *>(port)->isConnected();
|
|
|
|
return TOONZ_OK;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
int get_fx(toonz_port_handle_t port, toonz_fxnode_handle_t *fxnode) {
|
|
|
|
if (!port) {
|
|
|
|
return TOONZ_ERROR_INVALID_HANDLE;
|
|
|
|
}
|
|
|
|
if (!fxnode) {
|
|
|
|
return TOONZ_ERROR_NULL;
|
|
|
|
}
|
|
|
|
*fxnode = reinterpret_cast<TRasterFxPort *>(port)->getFx();
|
|
|
|
return TOONZ_OK;
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|