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 |
|
|
Shinya Kitaoka |
120a6e |
int is_connected(toonz_port_handle_t port, int *is_connected) {
|
|
Shinya Kitaoka |
120a6e |
if (!port) {
|
|
Shinya Kitaoka |
120a6e |
return TOONZ_ERROR_INVALID_HANDLE;
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
if (!is_connected) {
|
|
Shinya Kitaoka |
120a6e |
return TOONZ_ERROR_NULL;
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
*is_connected = reinterpret_cast<trasterfxport *="">(port)->isConnected();</trasterfxport>
|
|
Shinya Kitaoka |
120a6e |
return TOONZ_OK;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
int get_fx(toonz_port_handle_t port, toonz_fxnode_handle_t *fxnode) {
|
|
Shinya Kitaoka |
120a6e |
if (!port) {
|
|
Shinya Kitaoka |
120a6e |
return TOONZ_ERROR_INVALID_HANDLE;
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
if (!fxnode) {
|
|
Shinya Kitaoka |
120a6e |
return TOONZ_ERROR_NULL;
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
*fxnode = reinterpret_cast<trasterfxport *="">(port)->getFx();</trasterfxport>
|
|
Shinya Kitaoka |
120a6e |
return TOONZ_OK;
|
|
Toshihiro Shimizu |
890ddd |
}
|