|
GettingStarted
Writing a simple plugin
Getting started using the C APIYou must implement the following three functions:
An example "no op" implementation of these three functions in C is in examples/stub/stub.c in the source repository. You must compile these functions such that the names are exported from the shared library to call. For Microsoft VC and GCC the PP_EXPORT macro used in the declarations should be sufficient. Getting started using the C++ APIUsing the C++ wrapper, there is slightly more to the stub program, but it does more. You must implement these things:
An example "no op" implementation of these concepts is in examples/stub/stub.cc in the source repository. Next stepsOnce you get a simple plugin loading, you may want to explore: |
► Sign in to add a comment