librazor/razor.h
changeset 446 4277359896dc
parent 445 aada48958b92
child 447 0a5e583393e1
     1.1 --- a/librazor/razor.h	Mon Sep 08 10:26:39 2014 +0100
     1.2 +++ b/librazor/razor.h	Tue Sep 09 15:04:24 2014 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * Copyright (C) 2008  Kristian Høgsberg <krh@redhat.com>
     1.6   * Copyright (C) 2008  Red Hat, Inc
     1.7 - * Copyright (C) 2009, 2011, 2012  J. Ali Harlow <ali@juiblex.co.uk>
     1.8 + * Copyright (C) 2009, 2011, 2012, 2014  J. Ali Harlow <ali@juiblex.co.uk>
     1.9   *
    1.10   * This program is free software; you can redistribute it and/or modify
    1.11   * it under the terms of the GNU General Public License as published by
    1.12 @@ -432,6 +432,17 @@
    1.13  				     struct razor_rpm *rpm);
    1.14  void razor_transaction_update_all(struct razor_transaction *transaction);
    1.15  int razor_transaction_resolve(struct razor_transaction *trans);
    1.16 +
    1.17 +typedef void (*razor_unsatisfied_callback_t)(const char *requirement,
    1.18 +					     struct razor_package *package,
    1.19 +					     const char *name,
    1.20 +					     const char *version,
    1.21 +					     const char *arch,
    1.22 +					     void *data);
    1.23 +
    1.24 +int razor_transaction_unsatisfied(struct razor_transaction *trans,
    1.25 +				  razor_unsatisfied_callback_t callback,
    1.26 +				  void *data);
    1.27  int razor_transaction_describe(struct razor_transaction *trans);
    1.28  struct razor_set *razor_transaction_commit(struct razor_transaction *trans);
    1.29  void razor_transaction_destroy(struct razor_transaction *trans);