Add some initial code to create the Outbuf and to free it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-04-30 07:27:20 +01:00
parent 79b65ab184
commit c71edd740c
1 changed files with 16 additions and 2 deletions

View File

@ -5,11 +5,25 @@
Outbuf *
evas_outbuf_setup(int w, int h, unsigned int rotation, unsigned int depth, Eina_Bool alpha)
{
return NULL;
Outbuf *ob;
/* try to allocate space for out outbuf structure */
if (!(ob = calloc(1, sizeof(Outbuf))))
return NULL;
/* set some default outbuf properties */
ob->w = w;
ob->h = h;
ob->rotation = rotation;
ob->depth = depth;
/* return the allocated outbuf structure */
return ob;
}
void
evas_outbuf_free(Outbuf *ob)
{
/* free the allocated outbuf structure */
free(ob);
}