RaydiumWikiNi

DevelopingRaydium

PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes ec2-3-138-121-79.us-east-2.compute.amazonaws.com

Here we will show a few steps to help in this project developing something.

You can find 2 situations:
1- You want to modify/fix/extend raydium code (editing previous files).
2- You want to add a new feature in Raydium (creating new files).

TODO the first situation.


Creating new files

The raydium specific code is located mainly in two folders: /raydium/raydium and /raydium/raydium/headers. raydium/raydium contents the c files, while raydium/raydium/headers contents the .h files.
If you want to add, for example, a newfeature:
you must create /raydium/raydium/newfeature.c. You can put this at the begining of the file:
/*
    Raydium - CQFD Corp.
    http://raydium.org/
    License: GPL - GNU General Public License, see "gpl.txt" file.
*/

#ifndef DONT_INCLUDE_HEADERS
#include "index.h"
#else
#include "headers/newfeature.h"
#endif

and /raydium/raydium/headers/newfeature.h. Here you can put at begining:
#ifndef _NEWFEATURE_H
#define _NEWFEATURE_H

#endif

Then, you can put the specific code in those files, following the RaydiumConventionsAtCoding?.
After that, you have to add those files to the compile. This is achieved editing the Makefile of raydium. In that file we have to locate the line HEADERS= and we will add raydium/headers/newfeature.h.
Also we will have to edit raydium/index.c to add #include "newfeature.c" And finally we have to edit raydium/index.h adding #include "headers/newfeature.h". These both modifications should be done before the #ifdef PHP_SUPPORT line (at least in the main cases).
Then, with a make clean and a make, we are ready.
That should be enough.