Skip to content

Instantly share code, notes, and snippets.

@lefred

lefred/01.h Secret

Last active January 25, 2022 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lefred/65b069cd99912415d85c4f4e870ef044 to your computer and use it in GitHub Desktop.
Save lefred/65b069cd99912415d85c4f4e870ef044 to your computer and use it in GitHub Desktop.
Extending MySQL using the Component Infrastructure – part 11
#include <mysql/components/services/pfs_plugin_table_service.h>
extern REQUIRES_SERVICE_PLACEHOLDER(pfs_plugin_table);
extern REQUIRES_SERVICE_PLACEHOLDER_AS(pfs_plugin_column_integer_v1, pfs_integer);
extern REQUIRES_SERVICE_PLACEHOLDER_AS(pfs_plugin_column_string_v1, pfs_string);
extern REQUIRES_SERVICE_PLACEHOLDER_AS(pfs_plugin_column_timestamp_v2, pfs_timestamp);
MYSQL_ADD_COMPONENT(viruscan
scan.cc
scan_pfs.cc
MODULE_ONLY
TEST_ONLY
LINK_LIBRARIES clamav
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment