source: pair.c @ fa00c5c

owl
Last change on this file since fa00c5c was fa00c5c, checked in by James M. Kretchmar <kretch@mit.edu>, 15 years ago
Correct license.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar
2 *
3 * This file is part of Owl.
4 *
5 * Owl is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * Owl is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Owl.  If not, see <http://www.gnu.org/licenses/>.
17 *
18 * ---------------------------------------------------------------
19 *
20 * As of Owl version 2.1.12 there are patches contributed by
21 * developers of the branched BarnOwl project, Copyright (c)
22 * 2006-2009 The BarnOwl Developers. All rights reserved.
23 */
24
25#include "owl.h"
26
27void owl_pair_create(owl_pair *p, void *key, void *value) {
28  p->key=key;
29  p->value=value;
30}
31
32void owl_pair_set_key(owl_pair *p, void *key) {
33  p->key=key;
34}
35
36void owl_pair_set_value(owl_pair *p, void *value) {
37  p->value=value;
38}
39
40void *owl_pair_get_key(owl_pair *p) {
41  return(p->key);
42}
43
44void *owl_pair_get_value(owl_pair *p) {
45  return(p->value);
46}
Note: See TracBrowser for help on using the repository browser.