2014-03-18 17:35:10 +00:00
|
|
|
/**
|
|
|
|
* @file client.c
|
|
|
|
*
|
|
|
|
* Sample client using the libbemenu.
|
|
|
|
* Also usable as dmenu replacement.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
2014-03-28 19:33:20 +00:00
|
|
|
#include <bemenu.h>
|
2014-03-18 17:35:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Main method
|
|
|
|
*
|
|
|
|
* This function gives and takes the life of our program.
|
|
|
|
*
|
|
|
|
* @param argc Number of arguments from command line
|
|
|
|
* @param argv Pointer to array of the arguments
|
|
|
|
* @return exit status of the program
|
|
|
|
*/
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
(void)argc, (void)argv;
|
|
|
|
|
2014-03-28 19:33:20 +00:00
|
|
|
bmMenu *menu = bmMenuNew(BM_DRAW_MODE_NONE);
|
|
|
|
|
|
|
|
if (!menu)
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
|
|
|
bmMenuRender(menu);
|
|
|
|
|
|
|
|
bmMenuFree(menu);
|
2014-03-18 17:35:10 +00:00
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim: set ts=8 sw=4 tw=0 :*/
|