summaryrefslogtreecommitdiff
path: root/src/bin/edje/edje_cc_out.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-03-10 15:42:12 +0900
committerHermet Park <chuneon.park@samsung.com>2020-03-10 15:42:13 +0900
commit107e425ef62ebb5cd9b2d6e7feff0d26bd35f6e5 (patch)
tree4d7ec15c140c7217217b3fd7a557da84a5eb94bf /src/bin/edje/edje_cc_out.c
parent794792aacbbf0f693ef9178cb71db16547214ff8 (diff)
edje: Rename Json to Lottie in edj supporting
Summary: The json file used by edje is for lottie output. json can be used in many ways. So the purpose is clear. Test Plan: N/A Reviewers: Hermet, kimcinoo, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11478
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_cc_out.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 4c192efe6e..af093b4d08 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -1428,22 +1428,22 @@ data_write_vectors(Eet_File *ef, int *vector_num)
1428 if (!f) continue; 1428 if (!f) continue;
1429 eina_file_close(f); 1429 eina_file_close(f);
1430 1430
1431 if (vector->type == EDJE_VECTOR_FILE_TYPE_JSON) 1431 if (vector->type == EDJE_VECTOR_FILE_TYPE_LOTTIE)
1432 { 1432 {
1433 char *json_data = NULL; 1433 char *lottie_data = NULL;
1434 int json_data_len = 0; 1434 int lottie_data_len = 0;
1435 1435
1436 f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE); 1436 f = eina_file_open(eina_strbuf_string_get(buf), EINA_FALSE);
1437 if (!f) continue; 1437 if (!f) continue;
1438 1438
1439 json_data_len = (int) eina_file_size_get(f); 1439 lottie_data_len = (int) eina_file_size_get(f);
1440 json_data = eina_file_map_all(f, EINA_FILE_POPULATE); 1440 lottie_data = eina_file_map_all(f, EINA_FILE_POPULATE);
1441 1441
1442 eina_strbuf_reset(buf); 1442 eina_strbuf_reset(buf);
1443 eina_strbuf_append_printf(buf, "edje/vectors/%i", vector->id); 1443 eina_strbuf_append_printf(buf, "edje/vectors/%i", vector->id);
1444 eet_write(ef, eina_strbuf_string_get(buf), json_data, json_data_len, EET_COMPRESSION_NONE); 1444 eet_write(ef, eina_strbuf_string_get(buf), lottie_data, lottie_data_len, EET_COMPRESSION_NONE);
1445 1445
1446 eina_file_map_free(f, json_data); 1446 eina_file_map_free(f, lottie_data);
1447 eina_file_close(f); 1447 eina_file_close(f);
1448 1448
1449 *vector_num += 1; 1449 *vector_num += 1;