projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79b4801
)
Add define for read and write buffer size
author
Zhenhua Zhang
<zhenhua.zhang@intel.com>
Fri, 26 Feb 2010 09:56:30 +0000
(17:56 +0800)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 26 Feb 2010 22:04:52 +0000
(16:04 -0600)
gatchat/gatserver.c
patch
|
blob
|
history
diff --git
a/gatchat/gatserver.c
b/gatchat/gatserver.c
index
95a9e8f
..
15bbbff
100644
(file)
--- a/
gatchat/gatserver.c
+++ b/
gatchat/gatserver.c
@@
-32,6
+32,8
@@
#include "ringbuffer.h"
#include "gatserver.h"
+#define BUF_SIZE 4096
+
enum ParserState {
PARSER_STATE_IDLE,
PARSER_STATE_A,
@@
-480,7
+482,7
@@
GAtServer *g_at_server_new(GIOChannel *io)
server->ref_count = 1;
v250_settings_create(&server->v250);
server->channel = io;
- server->read_buf = ring_buffer_new(
4096
);
+ server->read_buf = ring_buffer_new(
BUF_SIZE
);
server->max_read_attempts = 3;
if (!server->read_buf)