child-cfg: Add equals() method

This commit is contained in:
Tobias Brunner
2016-03-08 10:21:57 +01:00
parent 348b0ffbc6
commit 3af23606bf
2 changed files with 62 additions and 2 deletions
+9 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2008-2009 Tobias Brunner
* Copyright (C) 2008-2015 Tobias Brunner
* Copyright (C) 2005-2007 Martin Willi
* Copyright (C) 2005 Jan Hutter
* Hochschule fuer Technik Rapperswil
@@ -273,6 +273,14 @@ struct child_cfg_t {
*/
bool (*install_policy)(child_cfg_t *this);
/**
* Check if two child_cfg objects are equal.
*
* @param other candidate to check for equality against this
* @return TRUE if equal
*/
bool (*equals)(child_cfg_t *this, child_cfg_t *other);
/**
* Increase the reference count.
*