diff options
author | Luca Muscariello <muscariello@ieee.org> | 2020-05-13 21:25:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-05-13 21:25:17 +0000 |
commit | 76c0e9a9ac88ffc3df287cfb936d23cccad79a6e (patch) | |
tree | 9d04a10a857936e7e2884799a456eea718f4cdcf /hicn-plugin/src/cache_policies/cs_policy.h | |
parent | 7415aeaa213e63caa0bc3e625219996d9c2dc93a (diff) | |
parent | 485474ec0bcd5fd73743a040cbad326a458e6390 (diff) |
Merge "[HICN-606] Added doxygen documentation"
Diffstat (limited to 'hicn-plugin/src/cache_policies/cs_policy.h')
-rw-r--r-- | hicn-plugin/src/cache_policies/cs_policy.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/hicn-plugin/src/cache_policies/cs_policy.h b/hicn-plugin/src/cache_policies/cs_policy.h index c1a9a44c9..0bf745915 100644 --- a/hicn-plugin/src/cache_policies/cs_policy.h +++ b/hicn-plugin/src/cache_policies/cs_policy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Cisco and/or its affiliates. + * Copyright (c) 2017-2020 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -18,6 +18,13 @@ #include "../hashtb.h" +/** + * @file cs_policy.h + * + * This file provides the needed structures to implement a CS policy + */ + + /* * Structure */ @@ -41,7 +48,12 @@ struct hicn_cs_policy_s; /** * @brief Definition of the virtual functin table for a cache policy. * - * A cache policy must implement three functions: insert, update, delete, trim. + * A cache policy must implement all the following functions: + * - insert: add a new element + * - update: update the position of an existing element + * - dequeue: remove an element from the list + * - delete_get: return the next element that should be removed trim + * - flush: clean the cs */ typedef struct hicn_cs_policy_vft_s { |