forked from enlightenment/efl
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:
parent
79b65ab184
commit
c71edd740c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue