/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1996-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Phong Vo <[email protected]> *17* Glenn Fowler <[email protected]> *18* *19***********************************************************************/20#include "rshdr.h"2122/* Discipline event notification.23*/2425#if __STD_C26int rsnotify(Rs_t* rs, int op, Void_t* data, Void_t* arg, reg Rsdisc_t* disc)27#else28int rsnotify(rs, op, data, arg, disc)29Rs_t* rs;30int op;31Void_t* data;32Void_t* arg;33reg Rsdisc_t* disc;34#endif35{36int r;3738r = 0;39if (rs->events & op)40for (; disc; disc = disc->disc)41if ((disc->events & op) &&42(r = (*disc->eventf)(rs, op, data, arg, disc)))43break;44return r;45}464748