librepsheet  6.2.0
TheRepsheetcorelogiclibrary
 All Data Structures Files Functions Pages
Functions
marked.c File Reference
#include "repsheet.h"
#include "common.h"

Functions

int mark (redisContext *context, const char *actor, int type, const char *reason)
 
int is_ip_marked (redisContext *context, const char *actor, char *reason)
 
int is_user_marked (redisContext *context, const char *actor, char *reason)
 

Detailed Description

Author
Aaron Bedra
Date
12/09/2014

Function Documentation

int is_ip_marked ( redisContext *  context,
const char *  actor,
char *  reason 
)

Checks to see if an ip is on the Repsheet

Parameters
contextthe Redis connection
actorthe IP address of the actor
reasonreturns the reason for marking.
Returns
TRUE if yes, FALSE if no, DISCONNECTED if error
int is_user_marked ( redisContext *  context,
const char *  actor,
char *  reason 
)

Checks to see if a user is on the Repsheet

Parameters
contextthe Redis connection
actorthe user
reasonreturns the reason for marking.
Returns
TRUE if yes, FALSE if no, DISCONNECTED if error
int mark ( redisContext *  context,
const char *  actor,
int  type,
const char *  reason 
)

Adds the actor to the Repsheet

Parameters
contextthe Redis connection
actorthe actors user data or ip address
typeIP or USER string to describe the reason for marking
Returns
an integer result