Blame toonz/sources/toonzqt/plugin_port_interface.cpp
|
Toshihiro Shimizu |
890ddd |
#include "trasterfx.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "plugin_port_interface.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
int is_connected(toonz_port_handle_t port, int *is_connected)
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
if (!port) {
|
|
Toshihiro Shimizu |
890ddd |
return TOONZ_ERROR_INVALID_HANDLE;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
if (!is_connected) {
|
|
Toshihiro Shimizu |
890ddd |
return TOONZ_ERROR_NULL;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
*is_connected = reinterpret_cast<trasterfxport *="">(port)->isConnected();</trasterfxport>
|
|
Toshihiro Shimizu |
890ddd |
return TOONZ_OK;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
int get_fx(toonz_port_handle_t port, toonz_fxnode_handle_t *fxnode)
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
if (!port) {
|
|
Toshihiro Shimizu |
890ddd |
return TOONZ_ERROR_INVALID_HANDLE;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
if (!fxnode) {
|
|
Toshihiro Shimizu |
890ddd |
return TOONZ_ERROR_NULL;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
*fxnode = reinterpret_cast<trasterfxport *="">(port)->getFx();</trasterfxport>
|
|
Toshihiro Shimizu |
890ddd |
return TOONZ_OK;
|
|
Toshihiro Shimizu |
890ddd |
}
|