diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-17 08:50:53 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-17 09:58:21 +0100 |
commit | 5412be48e1dc5bc25b91c83430deccf79924b940 (patch) | |
tree | 7553b0624b7fa2b1c09b9ea8b3a5e0cfaf065a4b /src/lib/emile | |
parent | 9d29f80eb188e7b1b78aaa4bc4158f630ab14194 (diff) |
emile: remove use of deprecated eina binbuf function.
Diffstat (limited to 'src/lib/emile')
-rw-r--r-- | src/lib/emile/emile_compress.c | 4 | ||||
-rw-r--r-- | src/lib/emile/emile_image.c | 4 | ||||
-rw-r--r-- | src/lib/emile/emile_main.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/emile/emile_compress.c b/src/lib/emile/emile_compress.c index 11a3b4630c..d5a60ee125 100644 --- a/src/lib/emile/emile_compress.c +++ b/src/lib/emile/emile_compress.c | |||
@@ -75,7 +75,7 @@ emile_compress(const Eina_Binbuf *data, | |||
75 | return NULL; | 75 | return NULL; |
76 | } | 76 | } |
77 | 77 | ||
78 | return eina_binbuf_manage_new_length(compact, length); | 78 | return eina_binbuf_manage_new(compact, length, EINA_FALSE); |
79 | } | 79 | } |
80 | 80 | ||
81 | EAPI Eina_Bool | 81 | EAPI Eina_Bool |
@@ -125,7 +125,7 @@ emile_decompress(const Eina_Binbuf *data, Emile_Compressor_Type t, unsigned int | |||
125 | expanded = malloc(dest_length); | 125 | expanded = malloc(dest_length); |
126 | if (!expanded) return NULL; | 126 | if (!expanded) return NULL; |
127 | 127 | ||
128 | out = eina_binbuf_manage_new_length(expanded, dest_length); | 128 | out = eina_binbuf_manage_new(expanded, dest_length, EINA_FALSE); |
129 | if (!out) goto on_error; | 129 | if (!out) goto on_error; |
130 | 130 | ||
131 | if (!emile_expand(data, out, t)) | 131 | if (!emile_expand(data, out, t)) |
diff --git a/src/lib/emile/emile_image.c b/src/lib/emile/emile_image.c index 0838b267bd..7e889bb1f7 100644 --- a/src/lib/emile/emile_image.c +++ b/src/lib/emile/emile_image.c | |||
@@ -469,7 +469,7 @@ _emile_tgv_data(Emile_Image *image, | |||
469 | /* Allocate space for each ETC block (8 or 16 bytes per 4 * 4 pixels group) */ | 469 | /* Allocate space for each ETC block (8 or 16 bytes per 4 * 4 pixels group) */ |
470 | block_count = image->block.width * image->block.height / (4 * 4); | 470 | block_count = image->block.width * image->block.height / (4 * 4); |
471 | if (image->compress) | 471 | if (image->compress) |
472 | buffer = eina_binbuf_manage_read_only_new_length(alloca(etc_block_size * block_count), etc_block_size * block_count); | 472 | buffer = eina_binbuf_manage_new(alloca(etc_block_size * block_count), etc_block_size * block_count, EINA_TRUE); |
473 | 473 | ||
474 | for (plane = 0; plane < num_planes; plane++) | 474 | for (plane = 0; plane < num_planes; plane++) |
475 | for (y = 0; y < image->size.height + 2; y += image->block.height) | 475 | for (y = 0; y < image->size.height + 2; y += image->block.height) |
@@ -488,7 +488,7 @@ _emile_tgv_data(Emile_Image *image, | |||
488 | return EINA_FALSE; | 488 | return EINA_FALSE; |
489 | } | 489 | } |
490 | 490 | ||
491 | data_start = eina_binbuf_manage_read_only_new_length(m + offset, block_length); | 491 | data_start = eina_binbuf_manage_new(m + offset, block_length, EINA_TRUE); |
492 | offset += block_length; | 492 | offset += block_length; |
493 | 493 | ||
494 | EINA_RECTANGLE_SET(¤t, x, y, | 494 | EINA_RECTANGLE_SET(¤t, x, y, |
diff --git a/src/lib/emile/emile_main.c b/src/lib/emile/emile_main.c index cb3b12bb4a..a082304656 100644 --- a/src/lib/emile/emile_main.c +++ b/src/lib/emile/emile_main.c | |||
@@ -142,9 +142,9 @@ emile_pbkdf2_sha1(const char *key, | |||
142 | buf = alloca(salt_len + 4); | 142 | buf = alloca(salt_len + 4); |
143 | if (!buf) return EINA_FALSE; | 143 | if (!buf) return EINA_FALSE; |
144 | 144 | ||
145 | step1 = eina_binbuf_manage_read_only_new_length(buf, salt_len + 4); | 145 | step1 = eina_binbuf_manage_new(buf, salt_len + 4, EINA_TRUE); |
146 | if (!step1) return EINA_FALSE; | 146 | if (!step1) return EINA_FALSE; |
147 | step2 = eina_binbuf_manage_read_only_new_length(digest, 20); | 147 | step2 = eina_binbuf_manage_new(digest, 20, EINA_TRUE); |
148 | if (!step2) return EINA_FALSE; | 148 | if (!step2) return EINA_FALSE; |
149 | 149 | ||
150 | for (i = 1; len; len -= tmp_len, p += tmp_len, i++) | 150 | for (i = 1; len; len -= tmp_len, p += tmp_len, i++) |