summaryrefslogtreecommitdiff
path: root/src/lib/ecore_buffer/buffer_queue.h
diff options
context:
space:
mode:
authorSeunghun Lee <beauty.positive3@gmail.com>2015-06-22 10:23:54 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-22 10:31:42 -0400
commit8b621775619b9959fe952b095b3baaa7aaa99572 (patch)
tree99059a841a79729cac4687ea41f3abf672e6e455 /src/lib/ecore_buffer/buffer_queue.h
parent3671506ad39d2a956e388e151bd20f1b9ffd62a5 (diff)
ecore-buffer: Add ecore_buffer library to EFL.
Summary: Ecore_Buffer is abstraction of graphic buffer. it supports backend of shm, x11_dri2 and x11_dri3 for now, and this library also provides method to share buffers between processes. Ecore_Buffer_Provider and Ecore_Buffer_Consumer is for this, sharing buffer. provider draws something in to Ecore_Buffer, and consumer receives and displays it. the binary, bq_mgr is a connection maker for buffer provider and consumer. it can be included Enlightenment as a deamon later. @feature Test Plan: 1. Configure with --enable-ecore-buffer and --enable-always-build-examples to build examples. 2. Run bq_mgr, it connects consumer and provider. 3. Run ecore_buffer_provider_example and ecore_buffer_consumer_example Reviewers: lsj119, gwanglim, cedric, zmike, jpeg, raster, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2197
Diffstat (limited to 'src/lib/ecore_buffer/buffer_queue.h')
-rw-r--r--src/lib/ecore_buffer/buffer_queue.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lib/ecore_buffer/buffer_queue.h b/src/lib/ecore_buffer/buffer_queue.h
new file mode 100644
index 0000000000..f4f551fb6b
--- /dev/null
+++ b/src/lib/ecore_buffer/buffer_queue.h
@@ -0,0 +1,23 @@
1#ifndef _BUFFER_QUEUE_H_
2#define _BUFFER_QUEUE_H_
3
4#include <stdio.h>
5#include <Eina.h>
6
7#include "shared_buffer.h"
8
9typedef struct _Ecore_Buffer_Queue Ecore_Buffer_Queue;
10
11Ecore_Buffer_Queue *_ecore_buffer_queue_new(int w, int h, int queue_size);
12void _ecore_buffer_queue_free(Ecore_Buffer_Queue *ebq);
13void _ecore_buffer_queue_enqueue(Ecore_Buffer_Queue *ebq, Shared_Buffer *sb);
14Eina_Bool _ecore_buffer_queue_dequeue(Ecore_Buffer_Queue *ebq, Shared_Buffer **ret_sb);
15Eina_Bool _ecore_buffer_queue_is_empty(Ecore_Buffer_Queue *ebq);
16void _ecore_buffer_queue_shared_buffer_add(Ecore_Buffer_Queue *ebq, Shared_Buffer *sb);
17void _ecore_buffer_queue_shared_buffer_remove(Ecore_Buffer_Queue *ebq, Shared_Buffer *sb);
18Shared_Buffer *_ecore_buffer_queue_shared_buffer_find(Ecore_Buffer_Queue *ebq, Ecore_Buffer *buffer);
19Eina_List *_ecore_buffer_queue_shared_buffer_list_get(Ecore_Buffer_Queue *ebq);
20void _ecore_buffer_queue_connection_state_set(Ecore_Buffer_Queue *ebq, Eina_Bool connect);
21Eina_Bool _ecore_buffer_queue_connection_state_get(Ecore_Buffer_Queue *ebq);
22
23#endif