mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-09 04:40:06 +00:00
fpi-print: Expose a method to get the internal print type
We could use the property, but a getter is handier to use
This commit is contained in:
@@ -79,6 +79,22 @@ fpi_print_set_type (FpPrint *print,
|
||||
g_object_notify (G_OBJECT (print), "fpi-type");
|
||||
}
|
||||
|
||||
/**
|
||||
* fpi_print_get_type:
|
||||
* @print: A #FpPrint
|
||||
*
|
||||
* Retrieves the type of the print data.
|
||||
*
|
||||
* Returns: The #FpiPrintType of the print.
|
||||
*/
|
||||
FpiPrintType
|
||||
fpi_print_get_type (FpPrint *print)
|
||||
{
|
||||
g_return_val_if_fail (FP_IS_PRINT (print), FPI_PRINT_UNDEFINED);
|
||||
|
||||
return print->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* fpi_print_set_device_stored:
|
||||
* @print: A #FpPrint
|
||||
|
||||
@@ -36,6 +36,8 @@ void fpi_print_add_print (FpPrint *print,
|
||||
void fpi_print_set_type (FpPrint *print,
|
||||
FpiPrintType type);
|
||||
|
||||
FpiPrintType fpi_print_get_type (FpPrint *print);
|
||||
|
||||
gboolean fpi_print_match (FpPrint *self,
|
||||
FpPrint *other);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user