| 724 | //////////////////////////////////////////////////////////////////// |
| 725 | |
| 726 | TSReturnCode |
| 727 | TSPluginRegister(const TSPluginRegistrationInfo *plugin_info) |
| 728 | { |
| 729 | sdk_assert(sdk_sanity_check_null_ptr((void *)plugin_info) == TS_SUCCESS); |
| 730 | |
| 731 | if (!plugin_reg_current) { |
| 732 | return TS_ERROR; |
| 733 | } |
| 734 | |
| 735 | plugin_reg_current->plugin_registered = true; |
| 736 | |
| 737 | if (plugin_info->plugin_name) { |
| 738 | plugin_reg_current->plugin_name = ats_strdup(plugin_info->plugin_name); |
| 739 | } |
| 740 | |
| 741 | if (plugin_info->vendor_name) { |
| 742 | plugin_reg_current->vendor_name = ats_strdup(plugin_info->vendor_name); |
| 743 | } |
| 744 | |
| 745 | if (plugin_info->support_email) { |
| 746 | plugin_reg_current->support_email = ats_strdup(plugin_info->support_email); |
| 747 | } |
| 748 | |
| 749 | return TS_SUCCESS; |
| 750 | } |
| 751 | |
| 752 | TSReturnCode |
| 753 | TSPluginDSOReloadEnable(int enabled) |