xref: /wlan-driver/qca-wifi-host-cmn/umac/cmn_services/obj_mgr/src/wlan_objmgr_pdev_obj_i.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2016 The Linux Foundation. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for
5  * any purpose with or without fee is hereby granted, provided that the
6  * above copyright notice and this permission notice appear in all
7  * copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18  /**
19   * DOC: Public APIs to perform operations on PDEV object
20   */
21 #ifndef _WLAN_OBJMGR_PDEV_OBJ_I_H_
22 #define _WLAN_OBJMGR_PDEV_OBJ_I_H_
23 
24 /**
25  * wlan_objmgr_pdev_vdev_attach() - attach vdev to pdev
26  * @pdev: PDEV object
27  * @vdev: VDEV object
28  *
29  * API to be used for adding the VDEV object in PDEV's VDEV object list
30  *
31  * Return: SUCCESS on successful storing of VDEV object
32  *         FAILURE
33  */
34 QDF_STATUS wlan_objmgr_pdev_vdev_attach(struct wlan_objmgr_pdev *pdev,
35 					struct wlan_objmgr_vdev *vdev);
36 
37 /**
38  * wlan_objmgr_pdev_vdev_detach() - detach vdev from pdev
39  * @pdev: PDEV object
40  * @vdev: VDEV object
41  *
42  * API to be used for removing the VDEV object from PDEV's VDEV object list
43  *
44  * Return: SUCCESS on successful removal of VDEV object
45  *         FAILURE
46  */
47 QDF_STATUS wlan_objmgr_pdev_vdev_detach(struct wlan_objmgr_pdev *pdev,
48 				struct wlan_objmgr_vdev *vdev);
49 
50 #endif /* _WLAN_OBJMGR_PDEV_OBJ_I_H_*/
51