/**
 * lt_region_ref:
 * @region: a #lt_region_t.
 *
 * Increases the reference count of @region.
 *
 * Returns: (transfer none): the same @region object.
 */
lt_region_t *
lt_region_ref(lt_region_t *region)
{
	lt_return_val_if_fail (region != NULL, NULL);

	return lt_mem_ref(&region->parent);
}
Exemple #2
0
/**
 * lt_list_ref:
 * @list: a #lt_list_t.
 *
 * Increases the reference count of @list.
 *
 * Returns: (transfer none): the same @list object.
 */
lt_list_t *
lt_list_ref(lt_list_t *list)
{
	lt_return_val_if_fail (list != NULL, NULL);

	return lt_mem_ref(&list->parent);
}
Exemple #3
0
lt_xml_t *
lt_xml_ref(lt_xml_t *xml)
{
	g_return_val_if_fail (xml != NULL, NULL);

	return lt_mem_ref(&xml->parent);
}
Exemple #4
0
/**
 * lt_ext_module_ref:
 * @module: a #lt_ext_module_t.
 *
 * Increases the reference count of @module.
 *
 * Returns: (transfer none): the same @module object.
 */
lt_ext_module_t *
lt_ext_module_ref(lt_ext_module_t *module)
{
	g_return_val_if_fail (module != NULL, NULL);

	return lt_mem_ref(&module->parent);
}
Exemple #5
0
/**
 * lt_grandfathered_ref:
 * @grandfathered: a #lt_grandfathered_t.
 *
 * Increases the reference count of @grandfathered.
 *
 * Returns: (transfer none): the same @grandfathered object.
 */
lt_grandfathered_t *
lt_grandfathered_ref(lt_grandfathered_t *grandfathered)
{
	g_return_val_if_fail (grandfathered != NULL, NULL);

	return lt_mem_ref(&grandfathered->parent);
}
Exemple #6
0
/**
 * lt_region_db_ref:
 * @regiondb: a #lt_region_db_t.
 *
 * Increases the reference count of @regiondb.
 *
 * Returns: (transfer none): the same @regiondb object.
 */
lt_region_db_t *
lt_region_db_ref(lt_region_db_t *regiondb)
{
	g_return_val_if_fail (regiondb != NULL, NULL);

	return lt_mem_ref(&regiondb->parent);
}
Exemple #7
0
/**
 * lt_redundant_ref:
 * @redundant: a #lt_redundant_t.
 *
 * Increases the reference count of @redundant.
 *
 * Returns: (transfer none): the same @redundant object.
 */
lt_redundant_t *
lt_redundant_ref(lt_redundant_t *redundant)
{
	g_return_val_if_fail (redundant != NULL, NULL);

	return lt_mem_ref(&redundant->parent);
}
/**
 * lt_script_db_ref:
 * @scriptdb: a #lt_script_db_t.
 *
 * Increases the reference count of @scriptdb.
 *
 * Returns: (transfer none): the same @scriptdb object.
 */
lt_script_db_t *
lt_script_db_ref(lt_script_db_t *scriptdb)
{
	lt_return_val_if_fail (scriptdb != NULL, NULL);

	return lt_mem_ref((lt_mem_t *)scriptdb);
}
Exemple #9
0
/**
 * lt_extlang_db_ref:
 * @extlangdb: a #lt_extlang_db_t.
 *
 * Increases the reference count of @extlangdb.
 *
 * Returns: (transfer none): the same @extlangdb object.
 */
lt_extlang_db_t *
lt_extlang_db_ref(lt_extlang_db_t *extlangdb)
{
	g_return_val_if_fail (extlangdb != NULL, NULL);

	return lt_mem_ref(&extlangdb->parent);
}