eina: removing base64 from eina example.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Fri, 8 Jan 2016 22:51:41 +0000 (23:51 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 8 Jan 2016 23:33:44 +0000 (00:33 +0100)
Summary:
As base64 API's are no longer part of eina, removing them. Will add
separate file for emile examples.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3552

src/examples/eina/eina_str_01.c

index ec34ce4..fbe2cf0 100644 (file)
@@ -17,9 +17,6 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
    char *time_arr;
    time_t curr_time;
    struct tm *info;
-   char *b64;
-   unsigned char *decoded;
-   int decoded_len;
 
    eina_init();
 
@@ -71,20 +68,6 @@ int main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
    printf("Today's Date: %s\n", time_arr);
    free(time_arr);
 
-   b64 = eina_str_base64_encode((unsigned char *)"Enlightenment", 9);
-   printf("%s\n", b64);
-   decoded = eina_str_base64_decode(b64, &decoded_len);
-   printf("decoded string: %s, decoded_len: %d\n", decoded, decoded_len);
-   free(b64);
-   free(decoded);
-
-   b64 = eina_str_base64url_encode((unsigned char *)"www.enlightenment.org", 21);
-   printf("%s\n", b64);
-   decoded = eina_str_base64_decode(b64, &decoded_len);
-   printf("decoded string: %s, decoded_len: %d\n", decoded, decoded_len);
-   free(b64);
-   free(decoded);
-
    eina_shutdown();
 
    return 0;