2015-03-18 01:06:43 +01:00
|
|
|
|
// swad_follow.h: user's followers and followed
|
|
|
|
|
|
|
|
|
|
#ifndef _SWAD_FOL
|
|
|
|
|
#define _SWAD_FOL
|
|
|
|
|
/*
|
|
|
|
|
SWAD (Shared Workspace At a Distance in Spanish),
|
|
|
|
|
is a web platform developed at the University of Granada (Spain),
|
|
|
|
|
and used to support university teaching.
|
|
|
|
|
|
|
|
|
|
This file is part of SWAD core.
|
2016-01-01 20:19:43 +01:00
|
|
|
|
Copyright (C) 1999-2016 Antonio Ca<EFBFBD>as Vargas
|
2015-03-18 01:06:43 +01:00
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/********************************** Headers **********************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2015-03-24 00:01:40 +01:00
|
|
|
|
#include <stdlib.h> // For malloc
|
|
|
|
|
|
2015-03-19 01:59:08 +01:00
|
|
|
|
#include "swad_user.h"
|
|
|
|
|
|
2015-03-18 01:06:43 +01:00
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/****************************** Public constants *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/******************************** Public types *******************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
/****************************** Public prototypes ****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2016-01-27 22:31:36 +01:00
|
|
|
|
void Fol_PutLinkWhoToFollow (void);
|
|
|
|
|
void Fol_SuggestWhoToFollow (void);
|
|
|
|
|
|
2015-03-18 01:06:43 +01:00
|
|
|
|
bool Fol_CheckUsrIsFollowerOf (long FollowerCod,long FollowedCod);
|
2015-12-29 14:24:37 +01:00
|
|
|
|
unsigned Fol_GetNumFollowing (long UsrCod);
|
|
|
|
|
unsigned Fol_GetNumFollowers (long UsrCod);
|
|
|
|
|
void Fol_ShowFollowingAndFollowers (const struct UsrData *UsrDat,
|
2015-12-29 19:40:38 +01:00
|
|
|
|
unsigned NumFollowing,unsigned NumFollowers,
|
|
|
|
|
bool UsrFollowsMe,bool IFollowUsr);
|
2015-03-19 01:59:08 +01:00
|
|
|
|
void Fol_ListFollowing (void);
|
|
|
|
|
void Fol_ListFollowers (void);
|
2015-03-18 01:06:43 +01:00
|
|
|
|
|
|
|
|
|
void Fol_FollowUsr (void);
|
|
|
|
|
void Fol_UnfollowUsr (void);
|
|
|
|
|
|
2015-03-23 10:35:15 +01:00
|
|
|
|
void Fol_GetAndShowRankingFollowers (void);
|
|
|
|
|
|
2015-03-24 00:01:40 +01:00
|
|
|
|
void Fol_GetNotifFollower (char *SummaryStr,char **ContentStr);
|
|
|
|
|
|
2015-12-12 02:01:20 +01:00
|
|
|
|
void Fol_RemoveUsrFromUsrFollow (long UsrCod);
|
|
|
|
|
|
2015-03-18 01:06:43 +01:00
|
|
|
|
#endif
|