summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/cairo/src/cairo-observer.c
blob: c8ce5eea2a910b7445d211b5efacac67fce4ceb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "cairoint.h"

void
_cairo_observers_notify (cairo_list_t *observers, void *arg)
{
    cairo_observer_t *obs, *next;

    cairo_list_foreach_entry_safe (obs, next,
				   cairo_observer_t,
				   observers, link)
    {
	obs->callback (obs, arg);
    }
}