1
1
Nathan Hjelm b68d66bb9b MCA: Add the project/project version to the MCA base component
This commit adds support for project_framework_component_* parameter
matching. This is the first step in allowing the same framework name
in multiple projects. This change also bumps the MCA component version
to 2.1.0.

All master frameworks have been updated to use the new component
versioning macro. An mca.h has been added to each project to add a
project specific versioning macro of the form
PROJECT_MCA_VERSION_2_1_0.

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
2015-03-27 10:59:04 -06:00

90 строки
2.2 KiB
C

/*
* Copyright (c) 2012-2013 Los Alamos National Security, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/** @file:
*/
#ifndef ORTE_MCA_DFS_BASE_H
#define ORTE_MCA_DFS_BASE_H
/*
* includes
*/
#include "orte_config.h"
#include "orte/types.h"
#include "orte/constants.h"
#include "opal/class/opal_list.h"
#include "opal/mca/event/event.h"
#include "orte/mca/mca.h"
#include "orte/mca/dfs/dfs.h"
BEGIN_C_DECLS
/*
* MCA Framework
*/
ORTE_DECLSPEC extern mca_base_framework_t orte_dfs_base_framework;
/* select a component */
ORTE_DECLSPEC int orte_dfs_base_select(void);
/* tracker for active files */
typedef struct {
opal_list_item_t super;
orte_process_name_t requestor;
orte_process_name_t host_daemon;
char *uri;
char *scheme;
char *filename;
int local_fd;
int remote_fd;
size_t location;
} orte_dfs_tracker_t;
OBJ_CLASS_DECLARATION(orte_dfs_tracker_t);
/* requests */
typedef struct {
opal_list_item_t super;
opal_event_t ev;
uint64_t id;
orte_dfs_cmd_t cmd;
orte_process_name_t target;
char *uri;
int local_fd;
int remote_fd;
uint8_t *read_buffer;
long read_length;
opal_buffer_t *bptr;
opal_buffer_t bucket;
orte_dfs_open_callback_fn_t open_cbfunc;
orte_dfs_close_callback_fn_t close_cbfunc;
orte_dfs_size_callback_fn_t size_cbfunc;
orte_dfs_seek_callback_fn_t seek_cbfunc;
orte_dfs_read_callback_fn_t read_cbfunc;
orte_dfs_post_callback_fn_t post_cbfunc;
orte_dfs_fm_callback_fn_t fm_cbfunc;
orte_dfs_load_callback_fn_t load_cbfunc;
orte_dfs_purge_callback_fn_t purge_cbfunc;
void *cbdata;
} orte_dfs_request_t;
OBJ_CLASS_DECLARATION(orte_dfs_request_t);
#define ORTE_DFS_POST_REQUEST(d, cb) \
do { \
opal_event_set(orte_event_base, &((d)->ev), \
-1, OPAL_EV_WRITE, (cb), (d)); \
opal_event_set_priority(&((d)->ev), ORTE_SYS_PRI); \
opal_event_active(&((d)->ev), OPAL_EV_WRITE, 1); \
} while(0);
END_C_DECLS
#endif