MySQL Internals Manual  /  Writing a Procedure  /  Extend Class Procedure

18.1 Extend Class Procedure

Each new procedure needs to extend the Procedure class. For a minimal dummy procedure that doesn't actually change the result set it would look like this:

 class proc_dummy: public Procedure { }

In a real procedure you'd extend at least some of the member functions below: