~ubuntu-branches/ubuntu/feisty/ncbi-tools6/feisty

« back to all changes in this revision

Viewing changes to connect/ncbi_lbsmd_stub.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Id: ncbi_lbsmd_stub.c,v 6.7 2005/05/04 16:16:08 lavr Exp $
 
1
/*  $Id: ncbi_lbsmd_stub.c,v 6.10 2006/03/06 20:28:21 lavr Exp $
2
2
 * ===========================================================================
3
3
 *
4
4
 *                            PUBLIC DOMAIN NOTICE
34
34
#include <connect/ncbi_service_misc.h>
35
35
 
36
36
 
37
 
const SSERV_VTable* SERV_LBSMD_Open(SERV_ITER iter,
38
 
                                    SSERV_Info** info, HOST_INFO* hinfo)
39
 
{
40
 
    return 0;
41
 
}
42
 
 
43
 
 
44
 
extern char* LBSMD_GetConfig(void)
45
 
{
46
 
    return 0;
47
 
}
48
 
 
49
 
 
50
 
/*ARGSUSED*/
 
37
/*ARGSUSED*/
 
38
const SSERV_VTable *SERV_LBSMD_Open(SERV_ITER    iter,
 
39
                                    SSERV_Info** info,
 
40
                                    HOST_INFO*   host_info,
 
41
                                    int/*bool*/  dispd_to_follow)
 
42
{
 
43
    return 0;
 
44
}
 
45
 
 
46
 
 
47
extern const char* LBSMD_GetConfig(void)
 
48
{
 
49
    return 0;
 
50
}
 
51
 
 
52
 
 
53
/*ARGSUSED*/
 
54
extern ESwitch LBSMD_KeepHeapAttached(ESwitch sw/*ignored*/)
 
55
{
 
56
    /* ignore any new settings, always return Off */
 
57
    return eOff;
 
58
}
 
59
 
 
60
/*ARGSUSED*/ /*DEPRECATED*/
51
61
extern ESwitch LBSM_KeepHeapAttached(ESwitch sw/*ignored*/)
52
62
{
53
 
    /* ignore any new settings, always return Off */
54
63
    return eOff;
55
64
}
56
65
 
57
66
 
58
 
int LBSM_HINFO_CpuCount(const void* load_ptr)
59
 
{
60
 
    return -1;
61
 
}
62
 
 
63
 
 
64
 
int LBSM_HINFO_TaskCount(const void* load_ptr)
65
 
{
66
 
    return -1;
67
 
}
68
 
 
69
 
 
70
 
int/*bool*/ LBSM_HINFO_LoadAverage(const void* load_ptr, double lavg[2])
71
 
{
72
 
    return 0/*failure*/;
73
 
}
74
 
 
75
 
 
76
 
int/*bool*/ LBSM_HINFO_Status(const void* load_ptr, double status[2])
77
 
{
78
 
    return 0/*failure*/;
79
 
}
80
 
 
81
 
 
82
 
int/*bool*/ LBSM_HINFO_BLASTParams(const void* load_ptr, unsigned int blast[8])
 
67
/*ARGSUSED*/
 
68
extern HEAP LBSMD_GetHeapCopy(TNCBI_Time time/*ignored*/)
 
69
{
 
70
    return 0;
 
71
}
 
72
 
 
73
 
 
74
/*ARGSUSED*/
 
75
int LBSM_HINFO_CpuCount(LBSM_HINFO hinfo)
 
76
{
 
77
    return -1;
 
78
}
 
79
 
 
80
 
 
81
/*ARGSUSED*/
 
82
int LBSM_HINFO_TaskCount(LBSM_HINFO hinfo)
 
83
{
 
84
    return -1;
 
85
}
 
86
 
 
87
 
 
88
/*ARGSUSED*/
 
89
int/*bool*/ LBSM_HINFO_LoadAverage(LBSM_HINFO hinfo, double lavg[2])
 
90
{
 
91
    return 0/*failure*/;
 
92
}
 
93
 
 
94
 
 
95
/*ARGSUSED*/
 
96
int/*bool*/ LBSM_HINFO_Status(LBSM_HINFO hinfo, double status[2])
83
97
{
84
98
    return 0/*failure*/;
85
99
}
88
102
/*
89
103
 * --------------------------------------------------------------------------
90
104
 * $Log: ncbi_lbsmd_stub.c,v $
 
105
 * Revision 6.10  2006/03/06 20:28:21  lavr
 
106
 * Comments;  use proper LBSM_HINFO in all getters
 
107
 *
 
108
 * Revision 6.9  2006/03/06 14:42:04  lavr
 
109
 * SERV_LBSMD_Open() -- use new proto
 
110
 *
 
111
 * Revision 6.8  2006/03/05 17:44:12  lavr
 
112
 * Private API changes; cached HEAP copy; BLAST counters dropped
 
113
 *
91
114
 * Revision 6.7  2005/05/04 16:16:08  lavr
92
115
 * +<connect/ncbi_service_misc.h>, +LBSMD_GetConfig(), +LBSM_KeepHeapAttached()
93
116
 *