فهرست منبع

rename flip_social_explore and it's methods

jblanked 9 ماه پیش
والد
کامیت
c64236bf68
4فایلهای تغییر یافته به همراه15 افزوده شده و 15 حذف شده
  1. 4 4
      callback/callback.c
  2. 4 4
      explore/explore.c
  3. 7 0
      explore/explore.h
  4. 0 7
      explore/flip_social_explore.h

+ 4 - 4
callback/callback.c

@@ -2,7 +2,7 @@
 #include <callback/loader.h>
 #include <messages/flip_social_messages.h>
 #include <friends/flip_social_friends.h>
-#include <explore/flip_social_explore.h>
+#include <explore/explore.h>
 #include <feed/flip_social_feed.h>
 #include <flip_storage/flip_social_storage.h>
 #include <free/free.h>
@@ -1989,8 +1989,8 @@ void callback_logged_in_explore_updated(void *context)
     }
 
     // flipper_http_loading_task(
-    //     flip_social_get_explore,        // get the explore users
-    //     flip_social_parse_json_explore, // parse the explore users
+    //     explore_fetch,        // get the explore users
+    //     explore_parse_json, // parse the explore users
     //     FlipSocialViewSubmenu,          // switch to the explore submenu if successful
     //     FlipSocialViewLoggedInSubmenu,  // switch back to the main submenu if failed
     //     &app->view_dispatcher);         // view dispatcher
@@ -2030,7 +2030,7 @@ void callback_logged_in_message_users_updated(void *context)
 
     // get users
     // flipper_http_loading_task(
-    //     flip_social_get_explore_2,                   // get the explore users
+    //     explore_fetch_2,                             // get the explore users
     //     flip_social_parse_json_message_user_choices, // parse the explore users
     //     FlipSocialViewSubmenu,                       // switch to the explore submenu if successful
     //     FlipSocialViewLoggedInSubmenu,               // switch back to the main submenu if failed

+ 4 - 4
explore/flip_social_explore.c → explore/explore.c

@@ -1,9 +1,9 @@
-#include "flip_social_explore.h"
+#include <explore/explore.h>
 #include <alloc/alloc.h>
 
 // for now we're just listing the current users
 // as the feed is upgraded, then we can port more to the explore view
-bool flip_social_get_explore(FlipperHTTP *fhttp)
+bool explore_fetch(FlipperHTTP *fhttp)
 {
     if (!app_instance)
     {
@@ -41,7 +41,7 @@ bool flip_social_get_explore(FlipperHTTP *fhttp)
     fhttp->state = RECEIVING;
     return true;
 }
-bool flip_social_get_explore_2(FlipperHTTP *fhttp)
+bool explore_fetch_2(FlipperHTTP *fhttp)
 {
     if (!app_instance)
     {
@@ -73,7 +73,7 @@ bool flip_social_get_explore_2(FlipperHTTP *fhttp)
     return flipper_http_request(fhttp, GET, url, auth_headers, NULL);
 }
 
-bool flip_social_parse_json_explore(FlipperHTTP *fhttp)
+bool explore_parse_json(FlipperHTTP *fhttp)
 {
     if (!app_instance)
     {

+ 7 - 0
explore/explore.h

@@ -0,0 +1,7 @@
+#ifndef FLIP_SOCIAL_EXPLORE_H
+#define FLIP_SOCIAL_EXPLORE_H
+#include "flip_social.h"
+bool explore_fetch(FlipperHTTP *fhttp);
+bool explore_fetch_2(FlipperHTTP *fhttp);
+bool explore_parse_json(FlipperHTTP *fhttp);
+#endif

+ 0 - 7
explore/flip_social_explore.h

@@ -1,7 +0,0 @@
-#ifndef FLIP_SOCIAL_EXPLORE_H
-#define FLIP_SOCIAL_EXPLORE_H
-#include "flip_social.h"
-bool flip_social_get_explore(FlipperHTTP *fhttp);
-bool flip_social_get_explore_2(FlipperHTTP *fhttp);
-bool flip_social_parse_json_explore(FlipperHTTP *fhttp);
-#endif