8/7/2023 0 Comments Free pascal 2.0.2![]() ![]() Because we have a single translation for all 2.0.x versions, you can just change the MODULE_MAGIC_NUMBER_MAJOR to what Apache expects and it should work. The second plus the prefix ap_hook_ form the name of the function, and the third are the parameters of the hook function.Īpache expects that the module is compiled specifically for the exact same version as the server. The first is the return type of the hook function type. The difference between them is the first parameter, that has a different function type in each hook function.ĪP_DECLARE_HOOK macro receives 3 parameters. All hook are represent a function like ap_hook_pre_connection, with the same 4 parameters, and no return. ![]() The hooks use one of the most strange declarations possible. Library mod_hello uses httpd var hello_module : module Įxternal LibHTTPD name LibNamePrefix + 'ap_hook_pre_connection' + LibSuff16 To quick understand how to setup a project to compile as a Apache module, please take a look at the Hello World Module section.Ī basic apache module created with Free Pascal will have a code similar to this: In this section you will find a quick start guide, examples and technical details and other things to make the life of someone writting an apache module with pascal easier, but to understand the complete theory, take a look at the book above. The preface and the first chapter are very good to understand what you are doing, and the C API is the same utilized by Free Pascal Apache modules. The contents of the book "Writing Apache Modules with Perl and C" is available on-line: ![]() 1.5 Advantages of writing a Apache module on Free Pascal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |