1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/stabbertests/checkers/checkers.c
2015-05-25 02:18:31 +01:00

27 lines
535 B
C

#include "resource.h"
int
resource_equal_check(void *param, void *value)
{
Resource *param_res = (Resource *)param;
Resource *value_res = (Resource *)value;
if (g_strcmp0(param_res->name, value_res->name) != 0) {
return 0;
}
if (param_res->presence != value_res->presence) {
return 0;
}
if (param_res->priority != value_res->priority) {
return 0;
}
if (g_strcmp0(param_res->status, value_res->status) != 0) {
return 0;
}
return 1;
}