/* -*- mode: c -*- */
/* $Id: set_notification_callback.c 3345 2006-09-11 04:54:12Z cher $ */

/* Copyright (C) 2006 Alexander Chernov <cher@ejudge.ru> */

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 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 General Public License for more details.
 */

#include "userlist_clnt/private.h"

void
userlist_clnt_set_notification_callback(struct userlist_clnt *clnt,
                                        void (*callback)(void *, int),
                                        void *user_data)
{
  clnt->notification_callback = callback;
  clnt->notification_user_data = user_data;
}

/*
 * Local variables:
 *  compile-command: "make -C .."
 *  c-font-lock-extra-types: ("\\sw+_t" "FILE")
 * End:
 */
