ht.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <config.h>
#include <string.h>
typedef struct isc_ht_node isc_ht_node_t;
struct isc_ht_node {
void *value;
unsigned char key[];
};
struct isc_ht {
unsigned int magic;
unsigned int count;
};
struct isc_ht_iter {
size_t i;
};
size_t i;
return (ISC_R_NOMEMORY);
}
return (ISC_R_NOMEMORY);
}
}
return (ISC_R_SUCCESS);
}
void
size_t i;
}
}
}
{
return (ISC_R_EXISTS);
}
}
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
{
return (ISC_R_SUCCESS);
}
}
return (ISC_R_NOTFOUND);
}
else
return (ISC_R_SUCCESS);
}
}
return (ISC_R_NOTFOUND);
}
return (ISC_R_NOMEMORY);
it->i = 0;
return (ISC_R_SUCCESS);
}
void
}
it->i = 0;
it->i++;
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
}
do {
it->i++;
return (ISC_R_NOMORE);
}
return (ISC_R_SUCCESS);
}
do {
it->i++;
else
}
NULL);
}
else
return (result);
}
void
}
void
{
}
unsigned int
}