first run of context
This commit is contained in:
parent
80ee17692a
commit
fb95e5d026
2 changed files with 13 additions and 4 deletions
|
@ -1,10 +1,7 @@
|
||||||
#ifndef _SPHO_SPHO_H
|
#ifndef _SPHO_SPHO_H
|
||||||
#define _SPHO_SPHO_H
|
#define _SPHO_SPHO_H
|
||||||
|
|
||||||
#include <sys/queue.h>
|
|
||||||
|
|
||||||
#include "spho/err.h"
|
#include "spho/err.h"
|
||||||
|
#include "spho/ctx.h"
|
||||||
#include "spho/data.h"
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "spho/spho.h"
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
struct spho_ctx *ctx;
|
||||||
|
|
||||||
|
ctx = NULL;
|
||||||
|
|
||||||
|
if ((ctx = spho_ctx_create()) == NULL)
|
||||||
|
return (-1);
|
||||||
|
|
||||||
|
spho_ctx_destroy(ctx);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue