balde
master
A microframework for C based on GLib.
hello-with-static.c
An example with static files. It depends on more files. Take a look at it on the balde source code.
/*
* balde: A microframework for C based on GLib.
* Copyright (C) 2013-2017 Rafael G. Martins <rafael@rafaelmartins.eng.br>
*
* This program can be distributed under the terms of the LGPL-2 License.
* See the file COPYING.
*/
#include <
balde.h
>
#include "static-resources.h"
// no view required, just hit /static/foo.js, /static/foo.css and /static/asd/bola.txt :)
int
main(
int
argc,
char
**argv)
{
balde_app_t
*app =
balde_app_init
();
balde_resources_load
(app, static_resources_get_resource());
balde_app_run
(app, argc, argv);
balde_app_free
(app);
return
0;
}
balde.h
balde public API.
balde_app_free
void balde_app_free(balde_app_t *app)
Free application context memory.
balde_app_run
void balde_app_run(balde_app_t *app, gint argc, gchar **argv)
Application main loop.
balde_resources_load
void balde_resources_load(balde_app_t *app, GResource *resources)
Load static resources.
balde_app_init
balde_app_t * balde_app_init(void)
Initializes the application context.
balde_app_t
balde application context
Definition:
balde.h:122
Generated on Sat Aug 13 2022 21:41:33 for balde by
1.8.17