diff -r aada48958b92 -r 4277359896dc librazor/razor.h --- a/librazor/razor.h Mon Sep 08 10:26:39 2014 +0100 +++ b/librazor/razor.h Tue Sep 09 15:04:24 2014 +0100 @@ -1,7 +1,7 @@ /* * Copyright (C) 2008 Kristian Høgsberg * Copyright (C) 2008 Red Hat, Inc - * Copyright (C) 2009, 2011, 2012 J. Ali Harlow + * Copyright (C) 2009, 2011, 2012, 2014 J. Ali Harlow * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -432,6 +432,17 @@ struct razor_rpm *rpm); void razor_transaction_update_all(struct razor_transaction *transaction); int razor_transaction_resolve(struct razor_transaction *trans); + +typedef void (*razor_unsatisfied_callback_t)(const char *requirement, + struct razor_package *package, + const char *name, + const char *version, + const char *arch, + void *data); + +int razor_transaction_unsatisfied(struct razor_transaction *trans, + razor_unsatisfied_callback_t callback, + void *data); int razor_transaction_describe(struct razor_transaction *trans); struct razor_set *razor_transaction_commit(struct razor_transaction *trans); void razor_transaction_destroy(struct razor_transaction *trans);