Commit 9572a9c9 authored by Jonh Wendell's avatar Jonh Wendell
Browse files

Add some checks

parent c8f646bd
......@@ -701,6 +701,8 @@ void
vinagre_connection_fill_writer (VinagreConnection *conn,
xmlTextWriterPtr writer)
{
g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
VINAGRE_CONNECTION_GET_CLASS (conn)->impl_fill_writer (conn, writer);
}
......@@ -708,12 +710,16 @@ void
vinagre_connection_parse_item (VinagreConnection *conn,
xmlNode *root)
{
g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
VINAGRE_CONNECTION_GET_CLASS (conn)->impl_parse_item (conn, root);
}
gchar*
vinagre_connection_get_best_name (VinagreConnection *conn)
{
g_return_val_if_fail (VINAGRE_IS_CONNECTION (conn), NULL);
return VINAGRE_CONNECTION_GET_CLASS (conn)->impl_get_best_name (conn);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment