Jelajahi Sumber

rename flip_social_friends and its methods

jblanked 9 bulan lalu
induk
melakukan
74da4f624f
4 mengubah file dengan 14 tambahan dan 14 penghapusan
  1. 3 3
      callback/callback.c
  2. 0 7
      friends/flip_social_friends.h
  3. 4 4
      friends/friends.c
  4. 7 0
      friends/friends.h

+ 3 - 3
callback/callback.c

@@ -1,7 +1,7 @@
 #include <callback/callback.h>
 #include <callback/callback.h>
 #include <callback/loader.h>
 #include <callback/loader.h>
 #include <messages/flip_social_messages.h>
 #include <messages/flip_social_messages.h>
-#include <friends/flip_social_friends.h>
+#include <friends/friends.h>
 #include <explore/explore.h>
 #include <explore/explore.h>
 #include <feed/feed.h>
 #include <feed/feed.h>
 #include <flip_storage/flip_social_storage.h>
 #include <flip_storage/flip_social_storage.h>
@@ -1795,8 +1795,8 @@ void callback_logged_in_profile_item_selected(void *context, uint32_t index)
         //     return;
         //     return;
         // }
         // }
         // flipper_http_loading_task(
         // flipper_http_loading_task(
-        //     flip_social_get_friends,
-        //     flip_social_parse_json_friends,
+        //     friends_fetch,
+        //     friends_parse_json,
         //     FlipSocialViewSubmenu,
         //     FlipSocialViewSubmenu,
         //     FlipSocialViewVariableItemList,
         //     FlipSocialViewVariableItemList,
         //     &app->view_dispatcher);
         //     &app->view_dispatcher);

+ 0 - 7
friends/flip_social_friends.h

@@ -1,7 +0,0 @@
-#ifndef FLIP_SOCIAL_FRIENDS_H
-#define FLIP_SOCIAL_FRIENDS_H
-#include "flip_social.h"
-bool flip_social_get_friends(FlipperHTTP *fhttp);
-bool flip_social_update_friends();
-bool flip_social_parse_json_friends(FlipperHTTP *fhttp);
-#endif

+ 4 - 4
friends/flip_social_friends.c → friends/friends.c

@@ -1,9 +1,9 @@
-#include "flip_social_friends.h"
+#include <friends/friends.h>
 #include <alloc/alloc.h>
 #include <alloc/alloc.h>
 
 
 // for now we're just listing the current users
 // for now we're just listing the current users
 // as the feed is upgraded, then we can port more to the friends view
 // as the feed is upgraded, then we can port more to the friends view
-bool flip_social_get_friends(FlipperHTTP *fhttp)
+bool friends_fetch(FlipperHTTP *fhttp)
 {
 {
     if (!app_instance)
     if (!app_instance)
     {
     {
@@ -38,7 +38,7 @@ bool flip_social_get_friends(FlipperHTTP *fhttp)
     return true;
     return true;
 }
 }
 
 
-bool flip_social_update_friends()
+bool friends_update()
 {
 {
     if (!app_instance)
     if (!app_instance)
     {
     {
@@ -65,7 +65,7 @@ bool flip_social_update_friends()
     return true;
     return true;
 }
 }
 
 
-bool flip_social_parse_json_friends(FlipperHTTP *fhttp)
+bool friends_parse_json(FlipperHTTP *fhttp)
 {
 {
     if (!fhttp)
     if (!fhttp)
     {
     {

+ 7 - 0
friends/friends.h

@@ -0,0 +1,7 @@
+#ifndef FLIP_SOCIAL_FRIENDS_H
+#define FLIP_SOCIAL_FRIENDS_H
+#include "flip_social.h"
+bool friends_fetch(FlipperHTTP *fhttp);
+bool friends_update();
+bool friends_parse_json(FlipperHTTP *fhttp);
+#endif