lib: Add plugin_option type and protocol