Lines Matching refs:side

69 int ApiGen::genProcTypes(const std::string &filename, SideType side)  in genProcTypes()  argument
80 fprintf(fp, "#ifndef __%s_%s_proc_t_h\n", basename, sideString(side)); in genProcTypes()
81 fprintf(fp, "#define __%s_%s_proc_t_h\n", basename, sideString(side)); in genProcTypes()
97 … fprintf(fp, " (%s_APIENTRY *%s_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); in genProcTypes()
98 if (side == CLIENT_SIDE) { fprintf(fp, "void * ctx"); } in genProcTypes()
99 if (e->customDecoder() && side == SERVER_SIDE) { fprintf(fp, "void *ctx"); } in genProcTypes()
106 …if (j != 0 || side == CLIENT_SIDE || (side == SERVER_SIDE && e->customDecoder())) fprintf(fp, ", "… in genProcTypes()
112 if (side == SERVER_SIDE && e->customDecoder() && !e->notApi()) { in genProcTypes()
115 … fprintf(fp, " (%s_APIENTRY *%s_dec_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); in genProcTypes()
133 int ApiGen::genFuncTable(const std::string &filename, SideType side) in genFuncTable() argument
142 fprintf(fp, "#ifndef __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); in genFuncTable()
143 fprintf(fp, "#define __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); in genFuncTable()
164 int ApiGen::genContext(const std::string & filename, SideType side) in genContext() argument
173 fprintf(fp, "#ifndef __%s_%s_context_t_h\n", m_basename.c_str(), sideString(side)); in genContext()
174 fprintf(fp, "#define __%s_%s_context_t_h\n", m_basename.c_str(), sideString(side)); in genContext()
178 side == CLIENT_SIDE ? "client" : "server"); in genContext()
181 …StringVec & contextHeaders = side == CLIENT_SIDE ? m_clientContextHeaders : m_serverContextHeaders; in genContext()
188 m_basename.c_str(), sideString(side)); in genContext()
193 if (side == SERVER_SIDE && e->customDecoder() && !e->notApi()) { in genContext()
194 … fprintf(fp, "\t%s_dec_%s_proc_t %s;\n", e->name().c_str(), sideString(side), e->name().c_str()); in genContext()
195 … fprintf(fp, "\t%s_%s_proc_t %s_dec;\n", e->name().c_str(), sideString(side), e->name().c_str()); in genContext()
197 … fprintf(fp, "\t%s_%s_proc_t %s;\n", e->name().c_str(), sideString(side), e->name().c_str()); in genContext()
202 fprintf(fp, "\tvirtual ~%s_%s_context_t() {}\n", m_basename.c_str(), sideString(side)); in genContext()
204 if (side == CLIENT_SIDE || side == WRAPPER_SIDE) { in genContext()
206 m_basename.c_str(), sideString(side)); in genContext()
214 if (side == CLIENT_SIDE) { in genContext()
226 int ApiGen::genEntryPoints(const std::string & filename, SideType side) in genEntryPoints() argument
229 if (side != CLIENT_SIDE && side != WRAPPER_SIDE) { in genEntryPoints()
244 fprintf(fp, "#include \"%s_%s_context.h\"\n", m_basename.c_str(), sideString(side)); in genEntryPoints()
256 m_basename.c_str(), sideString(side)); in genEntryPoints()
260 m_basename.c_str(), sideString(side)); in genEntryPoints()
262 m_basename.c_str(), sideString(side)); in genEntryPoints()
273 bool shouldCallWithContext = (side == CLIENT_SIDE); in genEntryPoints()
953 int ApiGen::genContextImpl(const std::string &filename, SideType side) in genContextImpl() argument
962 std::string classname = m_basename + "_" + sideString(side) + "_context_t"; in genContextImpl()
965 fprintf(fp, "#include \"%s_%s_context.h\"\n\n\n", m_basename.c_str(), sideString(side)); in genContextImpl()
971 if (side == SERVER_SIDE && e->customDecoder() && !e->notApi()) { in genContextImpl()
975 sideString(side), in genContextImpl()
981 sideString(side), in genContextImpl()