* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
-#ifndef SATSOLVER_DIRPOOL_H
-#define SATSOLVER_DIRPOOL_H
+#ifndef LIBSOLV_DIRPOOL_H
+#define LIBSOLV_DIRPOOL_H
#include "pooltypes.h"
#include "util.h"
-typedef struct _Dirpool {
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct s_Dirpool {
Id *dirs;
int ndirs;
Id *dirtraverse;
static inline void
dirpool_free_dirtraverse(Dirpool *dp)
{
- sat_free(dp->dirtraverse);
+ solv_free(dp->dirtraverse);
dp->dirtraverse = 0;
}
return dp->dirs[did];
}
-#endif /* SATSOLVER_DIRPOOL_H */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* LIBSOLV_DIRPOOL_H */