Commit ced2dd46 authored by Philip Carns's avatar Philip Carns

install oid gen header for external use

parent 575a84e9
......@@ -10,7 +10,7 @@ check_PROGRAMS =
bin_PROGRAMS =
noinst_LTLIBRARIES =
lib_LTLIBRARIES =
include_HEADERS = include/ch-placement.h include/ch-placement-crush.h
include_HEADERS = include/ch-placement.h include/ch-placement-crush.h include/ch-placement-oid-gen.h
AM_CPPFLAGS =
......
......@@ -32,9 +32,9 @@ void oid_gen(char* gen_name,
unsigned long* total_obj_count,
struct obj** total_objs);
void objects_sort(struct obj* objs, unsigned int objs_count);
void oid_sort(struct obj* objs, unsigned int objs_count);
void objects_randomize(struct obj* objs, unsigned int objs_count, unsigned int seed);
void oid_randomize(struct obj* objs, unsigned int objs_count, unsigned int seed);
#endif /* OID_GEN_H */
......
......@@ -16,7 +16,7 @@
#include <limits.h>
#include <sys/time.h>
#include "oid-gen.h"
#include "ch-placement-oid-gen.h"
#include "ch-placement.h"
#include "comb.h"
......
......@@ -16,7 +16,7 @@
#include <limits.h>
#include <sys/time.h>
#include "oid-gen.h"
#include "ch-placement-oid-gen.h"
#include "ch-placement.h"
struct options
......
......@@ -10,7 +10,7 @@
#include <stdio.h>
#include <limits.h>
#include "oid-gen.h"
#include "ch-placement-oid-gen.h"
#include "ch-placement.h"
#define PRINT_PROGRESS 1
......@@ -66,14 +66,14 @@ static void oid_gen_basic(
struct obj** total_objs);
static int obj_cmp(const void* a, const void *b);
void objects_sort(struct obj* objs, unsigned int objs_count)
void oid_sort(struct obj* objs, unsigned int objs_count)
{
qsort(objs, objs_count, sizeof(*objs), obj_cmp);
return;
}
void objects_randomize(struct obj* objs, unsigned int objs_count, unsigned int seed)
void oid_randomize(struct obj* objs, unsigned int objs_count, unsigned int seed)
{
unsigned int i;
unsigned int j;
......@@ -191,7 +191,7 @@ static void oid_gen_random(
#endif
/* sort and filter out duplicate OIDs */
objects_sort(*total_objs, *total_objs_count);
oid_sort(*total_objs, *total_objs_count);
for(i=0; i<((*total_objs_count)-1); i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment