-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathffos.h
62 lines (53 loc) · 1.5 KB
/
ffos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* ffos.h header file
*
* This header file contains the functions used by ffos-cli
* about creating a new project, adding source files, and
* edditing the manifest file
*
* @version 0.1
* @author Aldo Ziflaj
*/
#ifndef FFOS_H
#define FFOS_H
#define FFOS_PRO 1
#define NOT_FFOS_PRO 0
#define FFOS_VERSION "0.1"
#include <stdio.h>
/**
* This function is used to create a new Firefox OS application
* @param argc The number of arguments passed (from cli)
* @param argv The list of arguments passed(from cli)
*/
void create(int argc,char **argv);
/**
* This function is used to add source files or permisions to the
* FFOS application
* @param argc The number of arguments passed (from cli)
* @param argv The list of arguments passed(from cli)
*/
void add(int argc,char **args);
/**
* This function is used to edit the manifest file of the application
* @param argc The number of arguments passed (from cli)
* @param argv The list of arguments passed(from cli)
*/
void set(int argc,char **args);
/**
* This function is used to delete a ffos application
* @param argc The number of arguments passed (from cli)
* @param argv The list of arguments passed(from cli)
*/
void delete(int argc,char **args);
/**
* This function prints the help page
*/
void help();
/**************** ffos helper functions ****************/
/**
* This helper function checks if a directory is a ffos project
* @return FFOS_PRO if the project is a ffos project,
* otherwise NOT_FFOS_PRO
*/
int check();
#endif /* ffos.h */