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()
94 … fprintf(fp, " (%s_APIENTRY *%s_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); in genProcTypes()
95 if (side == CLIENT_SIDE) { fprintf(fp, "void * ctx"); } in genProcTypes()
96 if (e->customDecoder() && side == SERVER_SIDE) { fprintf(fp, "void *ctx"); } in genProcTypes()
103 …if (j != 0 || side == CLIENT_SIDE || (side == SERVER_SIDE && e->customDecoder())) fprintf(fp, ", "… in genProcTypes()
109 if (side == SERVER_SIDE && e->customDecoder() && !e->notApi()) { in genProcTypes()
112 … fprintf(fp, " (%s_APIENTRY *%s_dec_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); in genProcTypes()
130 int ApiGen::genFuncTable(const std::string &filename, SideType side) in genFuncTable() argument
139 fprintf(fp, "#ifndef __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); in genFuncTable()
140 fprintf(fp, "#define __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); in genFuncTable()
161 int ApiGen::genContext(const std::string & filename, SideType side) in genContext() argument
170 fprintf(fp, "#ifndef __%s_%s_context_t_h\n", m_basename.c_str(), sideString(side)); in genContext()
171 fprintf(fp, "#define __%s_%s_context_t_h\n", m_basename.c_str(), sideString(side)); in genContext()
175 side == CLIENT_SIDE ? "client" : "server"); in genContext()
178 …StringVec & contextHeaders = side == CLIENT_SIDE ? m_clientContextHeaders : m_serverContextHeaders; in genContext()
185 m_basename.c_str(), sideString(side)); in genContext()
190 if (side == SERVER_SIDE && e->customDecoder() && !e->notApi()) { in genContext()
191 … fprintf(fp, "\t%s_dec_%s_proc_t %s;\n", e->name().c_str(), sideString(side), e->name().c_str()); in genContext()
192 … fprintf(fp, "\t%s_%s_proc_t %s_dec;\n", e->name().c_str(), sideString(side), e->name().c_str()); in genContext()
194 … fprintf(fp, "\t%s_%s_proc_t %s;\n", e->name().c_str(), sideString(side), e->name().c_str()); in genContext()
199 fprintf(fp, "\tvirtual ~%s_%s_context_t() {}\n", m_basename.c_str(), sideString(side)); in genContext()
201 if (side == CLIENT_SIDE || side == WRAPPER_SIDE) { in genContext()
203 m_basename.c_str(), sideString(side)); in genContext()
211 if (side == CLIENT_SIDE) { in genContext()
223 int ApiGen::genEntryPoints(const std::string & filename, SideType side) in genEntryPoints() argument
226 if (side != CLIENT_SIDE && side != WRAPPER_SIDE) { in genEntryPoints()
241 fprintf(fp, "#include \"%s_%s_context.h\"\n", m_basename.c_str(), sideString(side)); in genEntryPoints()
253 m_basename.c_str(), sideString(side)); in genEntryPoints()
257 m_basename.c_str(), sideString(side)); in genEntryPoints()
259 m_basename.c_str(), sideString(side)); in genEntryPoints()
270 bool shouldCallWithContext = (side == CLIENT_SIDE); in genEntryPoints()
899 int ApiGen::genContextImpl(const std::string &filename, SideType side) in genContextImpl() argument
908 std::string classname = m_basename + "_" + sideString(side) + "_context_t"; in genContextImpl()
911 fprintf(fp, "#include \"%s_%s_context.h\"\n\n\n", m_basename.c_str(), sideString(side)); in genContextImpl()
917 if (side == SERVER_SIDE && e->customDecoder() && !e->notApi()) { in genContextImpl()
921 sideString(side), in genContextImpl()
927 sideString(side), in genContextImpl()