#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include "lp.h"
free(d->version);
free(d->title);
free(d->displayname);
+
+ free(d);
}
}
void
-binary_package_publishing_history_free(struct binary_package_publishing_history *b)
+binary_package_publishing_history_free \
+(struct binary_package_publishing_history *b)
{
if (b) {
free(b->binary_package_name);
binary_package_publishing_history_new(const char *binary_package_name,
const char *binary_package_version,
const char *distro_arch_series_link,
- const char *self_link)
+ const char *self_link,
+ int architecture_specific)
{
struct binary_package_publishing_history *b;
b->binary_package_version = strdup(binary_package_version);
b->distro_arch_series_link = strdup(distro_arch_series_link);
b->self_link = strdup(self_link);
+ b->architecture_specific = architecture_specific;
return b;
}
void
-binary_package_publishing_history_list_free(struct binary_package_publishing_history **list)
+binary_package_publishing_history_list_free\
+(struct binary_package_publishing_history **list)
{
struct binary_package_publishing_history **l_cur = list;
}
}
-int list_length(void **list)
-{
- int n;
-
- n = 0;
- while (*list) {
- list++;
- n++;
- }
-
- return n;
-}
-